1 ;** DEFDBUG.ASM - Debugging Macro Definitions
4 ; DEBUG n,m,<format string>, <arg list>
10 DEBUG MACRO N,M,string,args
18 call c ;; push address of string
45 pop ax ;; discard format string offset
55 ;** ERRNZ - generate assembly error if arg != 0
62 RADIX 0 ; CONDITION NOT MET - ERROR
68 ;** DBBEG - Start debugging range
76 jnz lab ;; am to do it
88 ;** DEBUGTST - Test Debug Flags
92 ; Where N and M are bit masks.
94 ; If one or more of the bits in N is set in the high byte
95 ; of BUGBITS, and one or more of the bits in M is set in
96 ; the low byte of BUGBITS then clear the Z flag.
100 ; If both masks show a "hit" clear 'Z' else set 'Z'
106 test BYTE PTR BUGBITS,n
108 test BYTE PTR BUGBITS+1,m