; vars.inc - Macros for Defining Variables ; ; VarStart Address - Specify Where Variables Begin ; VarAdd Label, Size - Specify a Variable of a Given Size ; ; 99.07.31 - Updated to Include Check for repeated ; Invocations ; ; Myke Predko ; 99.06.25 ; VarStart macro mStart, mEnd ifdef VarStartVar error "'VarStart' Invocation Repeated More than once" else #define VarStartVar endif VarCurrent set mStart VarEnd set mEnd endm VarAdd macro VarName, Size if (VarCurrent > VarEnd) error "Too Many Variables for Allocated File Registers" endif VarName EQU VarCurrent VarCurrent set VarCurrent + Size endm