Question: 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.  Explain why it would not be possible to have the sum
of the two numbers be bigger than 10. 2) Type the code

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!