display 2 digit number

Shirish
Shirish Singh
Created on May 15, 2023 0 0 0
display 2 digit number
100%

Description

section .data var1 db 15H str1 db "Number is:" str1len equ $-str1 section .bss temp resb 1 str2 resb 8 section .text global_start _start: mov rax, 1 mov rdi, 1 mov rsi, str1 mov rdx, str1len syscall mov al, [var1] rol al, 04 and al, OFH add al, 30H mov [temp], al mov rax, 1 mov rdi, 1 mov rsi, temp mov rdx, 1 syscall mov al, [var1] and al, OFH add al, 30H mov [temp], al mov rax, 1 mov rdi, 1 mov rsi, temp mov rdx, 1 syscall mov rax,60 mov rdx, O syscall Output Number is:15 [Execution complete with exit code 1]

Procedure

  1. Connect Pin-1 (Input & Output) of ICBase-3 to Output-1.