汇编hello,world程序问题

来源:百度知道 编辑:UC知道 时间:2024/05/24 16:56:36
HELLO WORLD 程序如下:结果输出错误乱码+hello,world!: command not found
xor eax,eax
xor ebx,ebx
xor ecx,ecx
xor edx,edx
jmp short string
code:
pop ecx
mov bl,1
mov dl,13
mov al,4
int 0x80
dec bl
mov al,1
int 0x80
string:
call code
db 'hello,world!'

当然了。。你这个程序写的太NB了。。。完全把DS和CS搅到一起了。

结果hello那个字符串没当作CS中的数据来处理,当然会出现“未定义指令错误”