2017-09-09 03:51:52 -07:00
|
|
|
function bank_word(addr) = ((addr&$FFFF)<<8)|(addr>>16) : dl bank_word($123456)
|
|
|
|
|
2015-02-17 01:35:35 -08:00
|
|
|
macro offset(label, offset)
|
|
|
|
?tmp:
|
|
|
|
pushpc
|
|
|
|
org ?tmp+<offset>
|
|
|
|
<label>:
|
|
|
|
pullpc
|
|
|
|
endmacro
|
|
|
|
|
2015-02-20 00:42:13 -08:00
|
|
|
macro mirror(label)
|
|
|
|
?tmp:
|
|
|
|
pushpc
|
|
|
|
org ?tmp+$400000
|
|
|
|
<label>:
|
|
|
|
pullpc
|
|
|
|
endmacro
|
|
|
|
|
2015-02-22 17:47:08 -08:00
|
|
|
macro font_tile_offset(label)
|
|
|
|
db <label>-$0660>>6
|
|
|
|
endmacro
|
|
|
|
|
2015-02-17 01:35:35 -08:00
|
|
|
macro return(label)
|
|
|
|
PEA <label>-1
|
|
|
|
endmacro
|