0% found this document useful (0 votes)
31 views2 pages

Assembly Code for Input Processing

This program takes in two single-digit numeric input from the user, subtracts 30h from each, adds them together, adds 30h to the result, and displays the final sum and an equals sign. It uses DOS interrupts to get character input and output, performs arithmetic operations on the input, and exits the program.

Uploaded by

Shaam mk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views2 pages

Assembly Code for Input Processing

This program takes in two single-digit numeric input from the user, subtracts 30h from each, adds them together, adds 30h to the result, and displays the final sum and an equals sign. It uses DOS interrupts to get character input and output, performs arithmetic operations on the input, and exits the program.

Uploaded by

Shaam mk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Task 3

.model small

.stack 100h

.code

main proc

mov ah,01h

int 21h

sub al,30h

mov bl,al

mov ah,01h

int 21h

mov ah,01h

int 21h

sub al,30h

add bl,al

add bl,30h

mov ah,02h

mov dl,'='

mov ah,02h

int 21h

mov dl,bl

int 21h
mov ah,4ch

int 21h

main endp

end main

You might also like