Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


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 *".