Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Explain why it would not be possible to have the sum of the two numbers be bigger than 10. 2) Type the code below, Assembly,

Explain why it would not be possible to have the sum of the two numbers be bigger than 10. image text in transcribed
image text in transcribed
2) Type the code below, Assembly, Link, and Run the executable file. .model small stack 100h .data msg db 10,13,Enter a number $ msg2 db 10,13, The sum is $' x db 0 y db 0 .code addit proc mov ax,@data mov ds,ax mov ah,9h :9h is the Assembly function code for Write Character lea dx,msg ;load effective address of message (msg) into register dx int 21h Call DOS to Output Enter a number to read first number mov ah, 1h ;1h is the function code for Read Character from the keyboard int 21h Call DOS to read the first number; number read is stored in al. sub al,' strip ASCII off the character to turn it into a number. mov x,al ;storing first number read into variable x mov ah,9h ;Print-screen. 9h is the Assembly function code for Write Character lea dx,msg ;load effective address of message (msg) into register dx int 21h Call DOS to Output Enter a number to read first number ; 1h is the Assembly function code for Read Character from the keyboard Call DOS to read the second number; number read is stored in al. mov ah, 1h int 21h sub al, '0'strip ASCII off the character to turn it into a number ELET 313 Microprocessor Architecture Lab. Fall 20

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions