rumpk/apps/subject_entry.S

27 lines
469 B
ArmAsm
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.section .text._start, "ax"
.global _start
_start:
# 🕵 DIAGNOSTIC: BREATHE
# li t0, 0x10000000
# li t1, 0x23 # '#'
# sb t1, 0(t0)
# 🕵 DIAGNOSTIC: READY TO CALL MAIN
# li t1, 0x21 # '!'
# sb t1, 0(t0)
# Call main(0, NULL)
li a0, 0
li a1, 0
call main
# 🕵 DIAGNOSTIC: RETURNED FROM MAIN
# li t0, 0x10000000
# li t1, 0x24 # '$'
# sb t1, 0(t0)
# Call exit(result)
call exit
1: j 1b