微机原理题CS:2000H MOV AX,2012H2003H MOV CX,200CH2006H PUSH CX 2007H CALL 4000H200AH ADD AX,BX200CH ADD AX,DX200EH HLT… … … … CS:4000H MOV BX,200AHPOP DXRET上面的程序执行后:(AX)= (DX)=
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 20:50:19
微机原理题CS:2000H MOV AX,2012H2003H MOV CX,200CH2006H PUSH CX 2007H CALL 4000H200AH ADD AX,BX200CH ADD AX,DX200EH HLT… … … … CS:4000H MOV BX,200AHPOP DXRET上面的程序执行后:(AX)= (DX)=
微机原理题
CS:2000H MOV AX,2012H
2003H MOV CX,200CH
2006H PUSH CX
2007H CALL 4000H
200AH ADD AX,BX
200CH ADD AX,DX
200EH HLT
… …
… …
CS:4000H MOV BX,200AH
POP DX
RET
上面的程序执行后:
(AX)= (DX)=
微机原理题CS:2000H MOV AX,2012H2003H MOV CX,200CH2006H PUSH CX 2007H CALL 4000H200AH ADD AX,BX200CH ADD AX,DX200EH HLT… … … … CS:4000H MOV BX,200AHPOP DXRET上面的程序执行后:(AX)= (DX)=
CS:2000H MOV AX,2012H
2003H MOV CX,200CH
2006H PUSH CX ;把200C压栈
2007H CALL 4000H ;把200A压栈,再转到4000
200AH ADD AX,BX
200CH ADD AX,DX ;AX=401C
200EH HLT
… … … …
CS:4000H MOV BX,200AH
POP DX ;DX = 200A
RET ;返回到200C
上面的程序执行后:
(AX) = 401CH,(DX) = 200AH