Question: Procedure II: Subtraction with and without borrow 1 A . Lets subtract 3 3 H ( 5 1 1 0 ) from A 5 H
Procedure II: Subtraction with and without borrow
A Lets subtract from 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 ALA
MOV BL
SUB ALBL
AL:
BL:
MOV AX
MOV CXB
MOV BXA
MOV DX
SUB AXBX
AX:
Carry Flag:
Carry Flag:
; CXAX loaded with BH
; DXBX loaded with AH
; subtract the lower bits
Question : Is the carry bit set? Why? B is larger than
SBB CXDX
; now we subtract the upper bits with borrow
:
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
