Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ZP_LOCALS .SET $200 ;Start of free zero page memory
- .MACRO LOCAL arg
- .DEFINE arg ZP_LOCALS
- ZP_LOCALS .SET ZP_LOCALS+1
- .ENDMACRO
- start:
- LOCAL i
- LOCAL j
- LDA #5
- STA i ;WRONG!
- ;i is replaced with "ZP_LOCALS" ($202) rather than $200, the value at expansion
- STA j ;WRONG
- ;i is replaced with "ZP_LOCALS" ($202) rather than $201, the value at expansion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement