中午看了汇编教材的第一章,然后就想写出一个能读能输出的程序,完成如下:
;实现字符串的输入与输出
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
功能还不很完善,待进!
本文分享了一个简单的汇编语言程序实例,该程序能够实现字符串的输入与输出功能。通过调用readmsg和dispmsg子程序,展示了基本的汇编语言编程技巧。
中午看了汇编教材的第一章,然后就想写出一个能读能输出的程序,完成如下:
;实现字符串的输入与输出
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
功能还不很完善,待进!

被折叠的 条评论
为什么被折叠?