2008-11-03 02:18:10 +01:00
|
|
|
; debugging include file by barsuk
|
|
|
|
; if DEBUG=TRUE, adds debug.inc
|
|
|
|
; if DEBUG=FALSE, adds stubs for several macros from debug.inc
|
|
|
|
|
|
|
|
match =TRUE, DEBUG
|
|
|
|
{
|
|
|
|
|
2016-02-20 18:25:07 +01:00
|
|
|
include '..\..\..\..\debug.inc'
|
2008-11-03 02:18:10 +01:00
|
|
|
|
|
|
|
macro dph1 str
|
|
|
|
\{
|
|
|
|
debug_print_hex str
|
|
|
|
push eax
|
|
|
|
mov al, ' '
|
|
|
|
call debug_outchar
|
|
|
|
pop eax
|
|
|
|
\}
|
|
|
|
|
|
|
|
macro outs str
|
|
|
|
\{
|
|
|
|
pushad
|
|
|
|
lea edx, [str]
|
|
|
|
call debug_outstr
|
|
|
|
popad
|
|
|
|
\}
|
|
|
|
}
|
|
|
|
|
|
|
|
match =FALSE, DEBUG
|
|
|
|
{
|
|
|
|
|
|
|
|
macro print message
|
|
|
|
\{
|
|
|
|
\}
|
|
|
|
|
|
|
|
macro pregs
|
|
|
|
\{
|
|
|
|
\}
|
|
|
|
|
|
|
|
macro dph1 str
|
|
|
|
\{
|
|
|
|
\}
|
|
|
|
|
|
|
|
macro outs str
|
|
|
|
\{
|
|
|
|
\}
|
|
|
|
|
|
|
|
}
|