Merlin 64 Macros
Posted: Tue Jan 25, 2022 11:39 am
I am new to Merlin and would like to use it to modify Jamaica Mon. I ran into something I don't see in the manual and was looking for help. Here's a snippet of code from the PEEK+POKE+WAIT that I don't understand.
In the macro call there's a per,HEXEVAL. My question is what is "per"? I believe the HEXEVAL is the name of the macro, which is found later in the code, and if so, isn't the macro supposed to be defined before it is used? Or is that what "per" is for?
Code: Select all
* Init IEVAL vector
LDA $F7E5
CMP #$91 ;Check for PPP
BNE :SKIP
LDA $030A ;Old IEVAL
STA $0334
LDA $030B
STA $0335
:SKIP
>>> per,HEXEVAL
PLA
STA $030A
PLA
STA $030B