initial commit
[megadrive_tetris] / src / macros.inc
1 | Assembly macros
2 | ---------------
3
4 | pseudosubroutines (leaf functions)
5 | ----------------------------------
6         | call a leaf subroutine - use a6 for the reutrn address
7         .macro pseudo_call addr
8         move.l #0f, %a6         | a6 will hold the return address
9         jmp \addr
10 0:
11         .endm
12
13         | return from a leaf subroutine
14         .macro pseudo_ret
15         jmp (%a6)               | a6 better not have changed!
16         .endm