发布网友 发布时间:2022-04-23 05:42
共1个回答
热心网友 时间:2023-11-03 12:36
; multi-segment executable file template.
data segment
; add your data here!
pkey db "press any key...$"
ends
stack segment
dw 128 p(0)
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
CLC
MOV SI,4000H ;result in [4100]
MOV [SI],0ffffH
MOV [SI+2],0ffffH
MOV [SI+4],0ffffH
MOV AX,0000H
MOV [SI+102H],AX
MOV AX,[SI]
ADD AX,[SI+2]
ADC [SI+102H],0000
ADD AX,[SI+4]
MOV [SI+100H],AX
ADC [SI+102H],0000
JMP $
ends
end start ; set entry point and stop the assembler.