【发布时间】:2016-12-02 20:02:50
【问题描述】:
我想将光标放在“paper:”之后,等到给出 ENTER 后,然后将其放在“author(s):”之后。两个句子都是被打印的定义变量。
insert db "******* Insert new paper *******",0,0Ah,0Ah,0Ah, 0Dh, "$"
inserttitle db " Title of paper: ",0Dh,0Ah,0Ah, " Name of author(s): ",0Dh ,"$"
mainext db ,0Ah,0Ah,0Ah,0Ah,0Ah,0Ah,0Ah,0Ah," <<Main>> <<Next>>","$"
INSERT NEW PAPER
newpaper proc
call clrscr
mov dx, offset insert
call printf
mov dx, offset inserttitle
call printf
mov dx, offset mainext
call printf
call w8click
ret
newpaper endp
【问题讨论】:
-
用户能否输入字符“直到给出 ENTER”?
-
是的,你应该写论文标题,然后写作者姓名。第二次输入后,您可以单击下一步或主要
-
鼠标点击已经过测试并且可以正常工作,我只是不知道如何使用光标
-
鼠标?那你用鼠标吗?好的,这样做:当鼠标被点击时,你调用我的 proc
set_cursor将光标设置在鼠标位置。
标签: assembly x86-16 emu8086 text-cursor