question archive Write code that subtracts two unsigned 64-bit numbers
Subject:Electrical EngineeringPrice:2.86 Bought3
Write code that subtracts two unsigned 64-bit numbers. Note: the first number is stored in R1 and R2 registers and the second number is stored in R3 and R4 registers. The result must be in R5 and R6 registers.
ORG 00H
MOV R1, 0X0140
MOV R2, 0X0153
MOV R3, 0X0160
MOV R4, 0X0163
SUB BX, DX
SUB AX, CX
MOVE R5, BX
MOVE R6, AX
END