2011-01-28 14:00:06 +01:00
|
|
|
macro writestr [arg]
|
|
|
|
{
|
|
|
|
common
|
|
|
|
|
|
|
|
local straddr
|
|
|
|
local strend
|
|
|
|
pushad
|
|
|
|
push straddr
|
|
|
|
push strend
|
2020-11-10 13:19:15 +01:00
|
|
|
jmp @Kolibri@DebugPutString$qpxc
|
2011-01-28 14:00:06 +01:00
|
|
|
straddr db arg,0
|
|
|
|
strend:
|
|
|
|
pop eax
|
|
|
|
popad
|
|
|
|
}
|
|
|
|
|
|
|
|
macro writeint arg
|
|
|
|
{
|
|
|
|
push dword arg
|
|
|
|
xchg eax,[esp]
|
|
|
|
pushad
|
|
|
|
push eax
|
|
|
|
call @DebugPutNumber$qi
|
|
|
|
pop eax
|
|
|
|
popad
|
|
|
|
pop eax
|
|
|
|
}
|
|
|
|
|
|
|
|
macro write [arg]
|
|
|
|
{
|
|
|
|
forward
|
|
|
|
|
|
|
|
if arg eq
|
|
|
|
else if arg eq endline
|
|
|
|
writestr 10
|
|
|
|
else if arg eqtype ''
|
|
|
|
writestr arg
|
|
|
|
else
|
|
|
|
writeint arg
|
|
|
|
end if
|
|
|
|
}
|
|
|
|
|
|
|
|
macro writeln [arg]
|
|
|
|
{
|
|
|
|
common
|
|
|
|
|
|
|
|
write arg,endline
|
|
|
|
}
|
|
|
|
|