accept two number with micro
%macro disp 2
mov rax,01h
mov rdi,01h
mov rsi,%1
mov rdx,%2
syscall
%endmacro
%macro inn 2
mov rax,00h
mov rdi,00h
mov rsi,%1
mov rdx,%2
syscall
%endmacro
section .data
msg1 db "Enter the 8 bit number:",10
len1: equ -msg2
section .bss
num1 resb 03
section .text
global _start
_start:
disp msg1,len1
inn num1,02
disp msg2, len2
disp num1,02
mov rax,3ch
mov rdi,00
syscall