Question: A . Lets subtract 3 3 H ( 5 1 1 0 ) from A 5 H ( 1 6 5 1 0 ) .

A. Lets subtract 33H(5110) from A 5H(16510). We should get 72H(11410). FIRST write all the following code, which uses SUB to perform subractions that do not require a borrow, THEN single step, recording data as required:
MOV AX,2771
MOV CX,00B3
; CX,AX loaded with B32771H
MOV BX,87A0
MOV DX,0004
; DX,BX loaded with 487A0H
SUB AX,BX
; subtract the lower 16-bits
AX: Carry Flag:
Question 5: Is the carry bit set? Why? B32771 is larger than 487 A0.
SBB CX,DX
; now we subtract the upper 16 bits with borrow
AX:
CX:
 A. Lets subtract 33H(5110) from A 5H(16510). We should get 72H(11410).

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 Programming Questions!