mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-20 12:00:14 +00:00
16 lines
247 B
ArmAsm
16 lines
247 B
ArmAsm
.section .text.init
|
|
.globl _start
|
|
_start:
|
|
li sp, 4092
|
|
call main
|
|
li x1, 0xBABECAFE
|
|
write_tohost:
|
|
sw x1, tohost, x0
|
|
loop:
|
|
j loop
|
|
|
|
.pushsection .tohost,"aw",@progbits
|
|
.align 4
|
|
.global tohost
|
|
tohost: .word 0
|
|
.popsection |