2019-12-17 22:19:24 +00:00
|
|
|
*``````````````````````````````*
|
|
|
|
* Z80 MACRO ALIASES *
|
|
|
|
* *
|
|
|
|
* CALL : JSR EQUIVALENT *
|
|
|
|
* CPL : INVERTS BITS IN .A *
|
|
|
|
* JP : JMP EQUIVALENT *
|
|
|
|
* LD : MOV VAL FROM SRC,DEST *
|
|
|
|
* POP : PULL TOP FROM STACK *
|
|
|
|
* RET : RTS EQUIVALENT *
|
|
|
|
* SCF : SET CARRY FLAG *
|
|
|
|
*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*
|
|
|
|
*
|
|
|
|
*``````````````````````````````*
|
|
|
|
* INVERT .A BITS *
|
|
|
|
*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*
|
|
|
|
*
|
|
|
|
CPL MAC
|
2021-06-04 02:58:21 +00:00
|
|
|
EOR $FF ; {2B2C} {NZ}
|
2019-12-17 22:19:24 +00:00
|
|
|
<<<
|
|
|
|
*
|
|
|
|
*``````````````````````````````*
|
|
|
|
* JUMP EQUIVALENT *
|
|
|
|
*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*
|
|
|
|
*
|
|
|
|
JP MAC
|
2021-06-04 02:58:21 +00:00
|
|
|
JMP ]1 ; <1B5C}
|
2019-12-17 22:19:24 +00:00
|
|
|
<<<
|
|
|
|
*
|
|
|
|
*``````````````````````````````*
|
|
|
|
* LOAD FROM SOURCE TO DEST *
|
|
|
|
*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*
|
|
|
|
*
|
|
|
|
LD MAC ; NOT YET
|
|
|
|
; FUNCTIONAL UNTIL MOV
|
|
|
|
; MACRO IS DONE
|
|
|
|
<<<
|
|
|
|
*
|
|
|
|
*``````````````````````````````*
|
|
|
|
* PULL EQUIVALENT *
|
|
|
|
*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*
|
|
|
|
*
|
|
|
|
POP MAC
|
2021-06-04 02:58:21 +00:00
|
|
|
PLA ; {1B4C} {NZ}
|
2019-12-17 22:19:24 +00:00
|
|
|
<<<
|
|
|
|
*
|
|
|
|
*``````````````````````````````*
|
|
|
|
* SET CARRY FLAG *
|
|
|
|
*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*
|
|
|
|
*
|
|
|
|
SCF MAC
|
2021-06-04 02:58:21 +00:00
|
|
|
SEC ; {1B2C} {C=1}
|
2019-12-17 22:19:24 +00:00
|
|
|
<<<
|
|
|
|
*
|