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:
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.section .rodata
|
||||
.align 3
|
||||
.hello:
|
||||
.ascii "Hello World!\012\000"
|
||||
.ascii "Hello World!\n\000"
|
||||
|
||||
.text
|
||||
.align 3
|
||||
|
||||
Reference in New Issue
Block a user