RosettaCodeData/Task/Empty-string/MIPS-Assembly/empty-string-2.mips

7 lines
227 B
Plaintext

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