1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-02-03 02:14:40 +08:00

fix: errors in sample code snippets

sltiu => sltui @thanks to huangll2013lzu
     \012 => \n
This commit is contained in:
Zhang Fuxin
2022-09-23 11:43:57 +08:00
parent d20bc2bd18
commit 8de9d5f07d
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
st:
addi.w $t0,$a0, -10 //a-10
sltiu $t1,$t0, 8
sltui $t1,$t0, 8
beqz $t1, default //if (a-10)>=8
//goto default
la $t2, jr_table

View File

@@ -1,7 +1,7 @@
.section .rodata
.align 3
.hello:
.ascii "Hello World!\012\000"
.ascii "Hello World!\n\000"
.text
.align 3