RosettaCodeData/Task/Higher-order-functions/68000-Assembly/higher-order-functions.68000
2023-07-01 13:44:08 -04:00

11 lines
211 B
Text

LEA foo,A0
JSR bar
JMP * ;HALT
bar:
MOVE.L A0,-(SP)
RTS ;JMP foo
foo:
RTS ;do nothing and return. This rts retuns execution just after "JSR bar" but before "JMP *".