中午看了汇编教材的第一章,然后就想写出一个能读能输出的程序,完成如下:
;实现字符串的输入与输出
include io32.inc
.data
msg byte 100 dup(?),0
.code
start:
mov eax,offset msg
call readmsg
mov eax,offset msg
call dispmsg
exit 0
end start
功能还不很完善,待进!
中午看了汇编教材的第一章,然后就想写出一个能读能输出的程序,完成如下:
;实现字符串的输入与输出
include io32.inc
.data
msg byte 100 dup(?),0
.code
start:
mov eax,offset msg
call readmsg
mov eax,offset msg
call dispmsg
exit 0
end start
功能还不很完善,待进!