Jump to content

Jump anywhere: Difference between revisions

m
Line 1,972:
Most of the time you won't be jumping to a specific address. You can place a label before any instruction, and a jump to that label is the same as a jump to the address of that instruction.
 
<lang mips>
<lang mips>j GoHere ;the assembler will convert this label to a constant memory address for us.
nopj GoHere ;the assembler will convert ;branchthis delaylabel slot.to Thisa instructionconstant wouldmemory getaddress executed DURING thefor jumpus.
 
;But since NOP intentionally does nothing, it's not a problem.
nop ; branch delay slot. This instruction would get executed DURING the jump.
; But since NOP intentionally does nothing, it's not a problem.
 
GoHere:
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.