1 %line 1+1 intascii.asm 2 3 4 5 6 7 8 [section .note.GNU-stack] 9 10 [section .data] 11 NULL equ 0 12 13 [section .bss] 14 00000000 strNum resb 10 15 0000000A arr resd 1 16 17 [section .text] 18 [global intascii] 19 intascii: 20 00000000 55 push rbp 21 00000001 8B0425[00000000] mov eax, dword[arr] 22 00000008 48C7C100000000 mov rcx, 0 23 0000000F BB0A000000 mov ebx, 10 24 25 divLoop: 26 00000014 BA00000000 mov edx, 0 27 00000019 F7F3 div ebx 28 29 0000001B 52 push rdx 30 0000001C 48FFC1 inc rcx 31 0000001F 83F800 cmp eax, 0 32 00000022 75EE jne divLoop 33 34 35 00000024 48C7C3[00000000] mov rbx, strNum 36 0000002B 49C7C000000000 mov r8, 0 37 38 POPloop: 39 00000032 58 pop rax 40 00000033 B030 mov al, "0" 41 00000035 42880403 mov byte [rbx+r8], al 42 00000039 49FFC0 inc r8 43 0000003C E2F2 loop POPloop 44 45 0000003E 42C6040300 mov byte[rbx+r8], NULL 46 47 00000043 5D pop rbp 48 00000044 C3 ret 49