1 %line 1+1 int_ascii.asm 2 3 4 5 6 [section .data] 7 NULL equ 0 8 EXIT_SUCCESS equ 0 9 SYS_exit equ 60 10 00000000 DA050000 intNum dd 1498 11 12 [section .bss] 13 00000000 strNum resb 10 14 15 [section .text] 16 [global _start] 17 _start: 18 00000000 8B0425[00000000] mov eax, dword[intNum] 19 00000007 48C7C100000000 mov rcx, 0 20 0000000E BB0A000000 mov ebx, 10 21 22 divLoop: 23 00000013 BA00000000 mov edx, 0 24 00000018 F7F3 div ebx 25 26 0000001A 52 push rdx 27 0000001B 48FFC1 inc rcx 28 0000001E 83F800 cmp eax, 0 29 00000021 75EE jne divLoop 30 31 32 00000023 48C7C3[00000000] mov rbx, strNum 33 0000002A 48C7C700000000 mov rdi, 0 34 35 POPloop: 36 00000031 58 pop rax 37 00000032 B030 mov al, "0" 38 00000034 88043B mov byte [rbx+rdi], al 39 00000037 48FFC7 inc rdi 40 0000003A E2F3 loop POPloop 41 42 0000003C C6043B00 mov byte[rbx+rdi], NULL 43 44 00000040 48C7C03C000000 mov rax, SYS_exit 45 00000047 48C7C700000000 mov rdi, EXIT_SUCCESS 46 0000004E 0F05 syscall 47