mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-20 20:10:14 +00:00
init repo
This commit is contained in:
16
lab1/coremark/yatcpu/init.s
Normal file
16
lab1/coremark/yatcpu/init.s
Normal file
@@ -0,0 +1,16 @@
|
||||
.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
|
||||
Reference in New Issue
Block a user