2023-05-17 07:51:10 +00:00
|
|
|
; file: base.inc
|
2023-06-06 10:27:35 +00:00
|
|
|
|
2023-01-15 19:25:25 +00:00
|
|
|
extern log_impl
|
|
|
|
|
2023-05-17 07:51:10 +00:00
|
|
|
; macro: LOG
|
2023-06-06 10:27:35 +00:00
|
|
|
;
|
|
|
|
; example:
|
|
|
|
; (start code)
|
|
|
|
; LOG msg_boot_info, eax
|
|
|
|
; (end)
|
2023-01-17 10:35:11 +00:00
|
|
|
%macro LOG 1-*
|
2023-06-29 04:09:31 +00:00
|
|
|
%ifdef DEBUG
|
2023-01-17 10:35:11 +00:00
|
|
|
%rep %0
|
|
|
|
%rotate -1
|
2023-01-15 19:25:25 +00:00
|
|
|
push %1
|
2023-01-17 10:35:11 +00:00
|
|
|
%endrep
|
2023-01-15 19:25:25 +00:00
|
|
|
push file
|
|
|
|
|
|
|
|
call log_impl
|
|
|
|
|
2023-01-17 10:35:11 +00:00
|
|
|
add esp, 4
|
|
|
|
%rep %0
|
|
|
|
add esp, 4
|
|
|
|
%endrep
|
2023-06-29 04:09:31 +00:00
|
|
|
%endif
|
2023-01-15 19:25:25 +00:00
|
|
|
%endmacro
|