Files
Operating-System/Experiment/asm-exp/实验二/加强性实验2_多字节减法.asm
2026-06-25 00:09:09 +08:00

17 lines
408 B
NASM
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; 实验二加强性实验二:多字节减法运算
; 程序功能实现16位减法运算
; 被减数9876H减数1234H结果=8642H
CODE SEGMENT
ASSUME CS:CODE
ORG 100H
START:
MOV AX, 9876H ; 被减数AX=9876H
MOV BX, 1234H ; 减数BX=1234H
SUB AX, BX ; AX = AX - BX = 9876H - 1234H = 8642H
; 结果AX=8642H
INT 20
CODE ENDS
END START