use32 org 0 db 'MENUET01' dd 1, start, i_end, e_end, e_end, 0, 0 __DEBUG__ = 1 __DEBUG_LEVEL__ = 1 include 'proc32.inc' include 'macros.inc' include 'debug-fdo.inc' EFLAGS.ID = 1 SHL 21 start: pushfd btr dword[esp], BSF EFLAGS.ID popfd mov ecx, '0' next_char: cmp ecx, '9' jbe @f mov ecx, '0' @@: mcall 63, 1 ;jmp $ mcall 5, 10 inc ecx jmp next_char exit: mcall 18, 9, 2 mcall -1 mcall -2 ; just to check it's unreachable ;include_debug_strings i_end: rb 0x100 ;stack e_end: