please solve this question for easy 68k assembly language mi

please solve this question for easy 68k assembly language microprocessor course

This code has a several mistakes including missing instructions. Rewrite the program so that it gives a correct result?

Solution

DATA SEGMENT
NUM1 DB ?
NUM2 DB ?
RESULT DB ?
MSG1 DB 10,13,\"ENTER FIRST NUMBER TO MULTIPLY : $\"
MSG2 DB 10,13,\"ENTER SECOND NUMBER TO MULTIPLY : $\"
MSG3 DB 10,13,\"RESULT OF MULTIPLICATION IS : $\"
ENDS
CODE SEGMENT
ASSUME DS:DATA CS:CODE
START:
MOV AX,DATA
MOV DS,AX

LEA DX,MSG1
MOV AH,9
INT 21H

MOV AH,1
INT 21H
SUB AL,30H
MOV NUM1,AL

LEA DX,MSG2
MOV AH,9
INT 21H

MOV AH,1
INT 21H
SUB AL,30H
MOV NUM2,AL

MUL NUM1
  
MOV RESULT,AL
AAM

ADD AH,30H
ADD AL,30H

MOV BX,AX

LEA DX,MSG3
MOV AH,9
INT 21H

MOV AH,2
MOV DL,BH
INT 21H

MOV AH,2
MOV DL,BL
INT 21H

MOV AH,4CH
INT 21H   
ENDS
END START

please solve this question for easy 68k assembly language microprocessor course This code has a several mistakes including missing instructions. Rewrite the pro
please solve this question for easy 68k assembly language microprocessor course This code has a several mistakes including missing instructions. Rewrite the pro

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site