要完成的是下列数据的加法:123456H+00789AH ——————— 12AC F0H

it2023-02-10  64

data segment org 1000h x db 56h,34h,12h y db 9ah,78h z db 4 dup (0) data ends stacksq segment stack db 0,0,0,0,0,0,0,0 stacksq ends code segment assume cs:code,ds:data start: mov ax,data mov ds,ax MOV ax,ds:[1000H] ADD ax,ds:[1003H] mov ds:[1005H],ax MOV al,ds:[1002H] ADC al,00H MOV ds:[1007H],al mov ah,4ch int 21h code ends end start

data segment org 1000h x db 56h,34h,12h y db 9ah,78h z db 4 dup (0) data ends stacksq segment stack db 0,0,0,0,0,0,0,0 stacksq ends code segment assume cs:code,ds:data start: mov ax,data mov ds,ax MOV al,ds:[1000H] ADD al,ds:[1003H] mov ds:[1005H],al MOV al,ds:[1001H] ADC al,ds:[1004H] mov ds:[1006H],al MOV al,ds:[1002H] ADC al,00h MOV ds:[1007H],al mov ah,4ch int 21h code ends end start

查看 溢出OV(overflow,OF=1)

无溢出NV(no overflow,OF=0)

减量DN(direction down,DF=1)

增量UP(direction up,DF=0)

允许中断EI(enable interrupt,IF=1)

进制中断DI(disable interrupt,IF=0)

负NG(negative,SF=1)

正PL(plus,SF=0)

零ZR(zero,ZF=1)

非零NZ(no zero,ZF=0)

辅助进位AC(auxiliary carry,AF=1)

无辅助进位NA(no auxiliary carry,AF=0)

偶校验PE(even parity,PF=1)

奇校验PO(odd parity,PF=0)

进位CY(carry,CF=1)

无进位NC(no carry,CF=0)

最新回复(0)