Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Empty-string/MIPS-Assembly/empty-string-1.mips
Normal file
3
Task/Empty-string/MIPS-Assembly/empty-string-1.mips
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
li t0,0
|
||||
la a0,UserRam
|
||||
sb t0,(a0)
|
||||
6
Task/Empty-string/MIPS-Assembly/empty-string-2.mips
Normal file
6
Task/Empty-string/MIPS-Assembly/empty-string-2.mips
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
lbu t0,(a0)
|
||||
nop ;load delay slot (only necessary on MIPS I hardware)
|
||||
beqz t0,StringIsEmpty
|
||||
nop ;branch delay slot
|
||||
|
||||
;your code for what happens when the string is not empty, goes here
|
||||
Loading…
Add table
Add a link
Reference in a new issue