;Example macro file.This can be›;included in your assemblies using›; IN MACROS›;›;NOTES:›;For macros MVI and LDI, even though›;calling parameters will be an›;immediatevalue, should not use a '#'›;when calling the macro. Macro param›;passing is restricted to expression›;values only, and so the '#'s must be›;in the macro definition itself.›;›;Labelnames used in the definitions›;are used for passingparameters, and›;as such should not be used in the main›;body of the program.›;›.MG›!!!IND.MD(ZLOC);16 BIT INCREMENT›INCZLOC;USAGE:›BNE...I1; IND LOC›INCZLOC+1›...I1.ME›;›!!!MVI.MD(ZVAL ZLOC) ;16 BIT MOVE›LDA#>ZVAL; IMMEDIATE›STAZLOC+1;USAGE:›LDA#ZLOC;USAGE:›.ME; LDI LOC›;;LOADS ADR OF LOC›;›!!!LDD.MD(ZLOC);LD 16 BITS FROM›LDAZLOC; LOC, INTO A & X›LDXZLOC+1;USAGE:›.ME; LDD LOC›;›!!!STD.MD(ZLOC);STORE 16 BITS›STAZLOC; INTO LOC›STXZLOC+1;USAGE:›.ME; STD LOC›;›!!!ADD.MD(ZLOC);ADD 8 BIT VAL IN›ADCZLOC; ACCUMULATOR TO›STAZLOC; 16 BIT LOC›BCC...A1;USAGE:›INCZLOC+1; ADD LOC›...A1.ME›;›!!!SBD.MD(ZVAL ZLOC) ;SUBTR 8 BIT VAL›LDAZLOC; FROM 16 BIT LOC›SBC#ZVAL;USAGE:›STAZLOC; SUB 40 LOC›BCS...A1›DECZLOC+1›...A1.ME›;›!!!JEQ.MD(ZLOC);FULL SET OF›BNE...J1;CONDITIONAL JMPs›JMPZLOC›...J1.ME›!!!JNE.MD (ZLOC)›BEQ...J1›JMPZLOC›...J1.ME›!!!JPL.MD (ZLOC)›BMI...J1›JMPZLOC›...J1.ME›!!!JMI.MD (ZLOC)›BPL...J1›JMPZLOC›...J1.ME›!!!JCC.MD (ZLOC)›BCS...J1›JMPZLOC›...J1.ME›!!!JCS.MD (ZLOC)›BCC...J1›JMPZLOC›...J1.ME›;›; 65816-ONLY macros›;›!!!NAT.MD;Switch to Native›STZ$D40E›SEI›CLC›XCE›.ME›!!!EMU.MD;To Emulation›SEC›XCE›LDA#$C0;CHG TO 40 IF YOU›STA$D40E; DONT NEED DLIS›CLI›.ME›!!!R16.MD;16-bit Regs›REP#$30›.AW›.IW›.ME›!!!R8.MD;8-bit Regs›.AB›.IB›SEP#$30›.ME›!!!A16.MD;16-bit Acc›REP#$20›.AW›.ME›!!!A8.MD;8-bit Acc›.AB›SEP#$20›.ME›!!!I16.MD;16-bit Index›REP#$10›.IW›.ME›!!!I8.MD;8-bit Index›.IB›SEP#$10›.ME›!!!BSR.MD(ZLOC);Branch to›PER*+5; subroutine›BRAZLOC›.ME›!!!BSL.MD(ZLOC);Branch Long to›PER*+5; subroutine›BRLZLOC›.ME›