mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-03 22:01:55 +03:00
c2fbdf929c
git-svn-id: svn://kolibrios.org@1805 a494cfbc-eb01-0410-851d-a64ba20cac60
50 lines
581 B
PHP
50 lines
581 B
PHP
macro writestr [arg]
|
|
{
|
|
common
|
|
|
|
local straddr
|
|
local strend
|
|
pushad
|
|
push straddr
|
|
push strend
|
|
jmp @Menuet@DebugPutString$qpxc
|
|
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
|
|
}
|
|
|