계산기 코드
section .data msg1 db 'Input num1 : ' len1 equ $ -msg1 msg2 db 'Input Operator : ' len2 equ $ -msg2 msg3 db 'Input num3 : ' len3 equ $ -msg3 section .bss op resb 1 num1 resb 5 num2 resb 5 result resb 5 section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, msg1 mov edx, len1 int 0x80 mov eax, 3 mov ebx, 1 mov ecx, num1 mov edx, 5 int 0x80 mov eax, 4 mov ebx, 1 mov ecx, msg3 mov edx, ..
더보기