OneCompiler

accept two number without micro

115

section .data
msg1 db "Enter the 8 bit number:",10
len1: equ msg1msg2db"The8bitnumberis:",10len2:equ-msg1 msg2 db "The 8 bit number is:",10 len2: equ -msg2

section .bss
num1 resb 03

section .text
global _start
_start:

mov rax,01h
mov rdi,01h
mov rsi,msg1
mov rdx,len1
syscall

mov rax,00h
mov rdi,00h
mov rsi,num1
mov rdx,2
syscall

mov rax,01h
mov rdi,01h
mov rsi,msg2
mov rdx,len2
syscall

mov rax,01h
mov rdi,01h
mov rsi,num1
mov rdx,2
syscall

mov rax,3ch
mov rdi,00
syscall