汇编语言(超级初学者求助)

来源:百度知道 编辑:UC知道 时间:2024/06/02 02:05:29
code segment
assume cs:code
start: mov dl,44h
mov ah,02h
int 21h
int 20h
code ends
end start
到底什么地方有问题啊????
对啊
就想输出D

code segment
assume cs:code
start:
mov dl,44h
mov ah,02h
int 21h

MOV AH,4CH
INT 21H
code ends
end start

int 20h也可以结束当前程序~~
不过int 20h要求入口参数CS 是PSP的段地址~~
在COM程序中因为CS本身就是PSP段地址,OK~~
但这个要求一般在EXE程序中并不满足。
所以当终止程序作为一个 .EXE 文件, 建议的使用4Ch 21h 中断调用, 而不中断 20 h。

你写的没错
code segment
assume cs:code
start:
mov dl,44h
mov ah,02h
int 21h
//加一个任意键查看输出
mov ah,01h
int 21h
//然后退出
int 20h
code ends
end start

不然的话,直接跳过了。

你想干什么??
输出 D ??