Question: A . Lets subtract 3 3 H ( 5 1 1 0 ) from A 5 H ( 1 6 5 1 0 ) .
A Lets subtract from A We should get 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
MOV CXB
; CXAX loaded with BH
MOV BXA
MOV DX
; DXBX loaded with AH
SUB AXBX
; subtract the lower bits
AX: Carry Flag:
Question : Is the carry bit set? Why? B is larger than A
SBB CXDX
; now we subtract the upper bits with borrow
AX:
CX:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
