0

i was trying to answer this assembly question and I couldn't understand what to do

Here is a program that multiplies "two numbers" written in BCD format with a space.

DATA SEGMENT
    NUM1 DB 3, 9 
    NUM2 DB 9  
    RESULT DB 0, 0, 0 
DATA ENDS

CODE SEGMENT
ASSUME CS:CODE, DS:DATA
start:MOV AX, DATA
MOV DS, AX  
xor bx,bx
mov al,NUM1+1
mul NUM2 
___(1)___
add al,bh
___(2)___
mov RESULT+2,al
mov bh,ah
mov al,NUM1
mul NUM2
___(1)___
add al,bh
___(2)___
mov RESULT+1,al
mov RESULT,___(3)___
MOV AH, 4Ch  
INT 21h

CODE ENDS
END start

A. In the given program, three expressions are missing, marked with numbers between round brackets. Write down in your notebook the numbers of the missing phrases (1)-(3) only, in ascending order, and write next to Each number tells the missing phrase it represents.

I would love ןf someone could help me with this question

i have tried and al,0fh mov bh,al ,shr/shl and etc. i think the (1) is daa

Hartk
  • 9
  • 3
  • 1
    It's certainly not `daa` since that is not even after an addition. Also it's for packed. (1) should be `aam`, (2) `aaa` and (3) is `ah`. – Jester Feb 28 '23 at 23:19

0 Answers0