Jump anywhere: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 1,972: | 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. |
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. |
|||
j GoHere ;the assembler will convert this label to a constant memory address for us. |
|||
⚫ | |||
nop ; branch delay slot. This instruction would get executed DURING the jump. |
|||
⚫ | |||
GoHere: |
GoHere: |