Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Given the following variables of type word already initialized in memory:
- ;•OPA = – 459
- ;•OPB = 470
- ;•OPC = – 32756
- ;•OPD = 1
- ;Write a program that computes the expression: OPA+OPB–OPC+OPD, using AX register, and observe, giving reason, the ;behavior of flags (sign, overflow, carry)
- .MODEL small
- .STACK
- .DATA
- OPA DW -459
- OPB DW 470
- OPC DW -32756
- OPD DW 1
- .CODE
- .STARTUP
- MOV AX,OPA
- ADD AX,OPB
- SUB AX,OPC
- ADD AX,OPD
- .EXIT
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement