Flow-control structures: Difference between revisions

Content added Content deleted
m (→‎{{header|Z80 Assembly}}: minor clarification)
Line 3,018: Line 3,018:
=={{header|Z80 Assembly}}==
=={{header|Z80 Assembly}}==
<lang z80>JP &XXXX ; jump to an absolute address.
<lang z80>JP &XXXX ; jump to an absolute address.
JP (HL) ; jump to the address stored in HL
JP (HL) ; copy the value in HL to the program counter
PUSH rr RET ; fake a return address and "return" to that address
PUSH rr RET ; fake a return address and "return" to that address
CALL label ; call a subroutine named "label"
CALL label ; call a subroutine named "label"