SUB Instruction
SUB — Arithmetic Subtraction
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Register & Immediate | Memory & Register | Clear |
INCLUDE Irvine32.inc .data X SDWORD 20h .code main PROC mov eax, X sub eax, 20 call WriteInt exit main ENDP END main |
INCLUDE Irvine32.inc .data X SDWORD 20h Y SDWORD 20 .code main PROC mov eax, Y sub X, eax call WriteInt exit main ENDP END main |
INCLUDE Irvine32.inc .data X SDWORD 20h Y SDWORD 20 .code main PROC sub eax, eax sub eax, Y add eax, X call WriteInt exit main ENDP END main |
| Output | Output | Output |
|
“I want my children to have all the things I couldn’t afford. Then I want to move in with them.” — Phyllis Diller |