foo
[ld45_start_nothing] / src / dbglog.inc
1 ; vi:filetype=nasm ts=8 sts=8 sw=8:
2
3         extern dbglog_str
4         extern dbglog_str_num
5
6 %macro dbglog 1
7         mov esi, %%msg
8         call dbglog_str
9
10         section .data
11 %%msg: db %1,0
12         section .text
13 %endmacro
14
15 %macro dbglog 2
16         mov esi, %%msg
17         mov eax, %2
18         call dbglog_str_num
19
20         section .data
21 %%msg: db %1,0
22         section .text
23 %endmacro