调整程序集 x86 中的光标中心 (Irvine32)

Adjusting the center of cursor in assembly x86 (Irvine32)

提问人:dopyman 提问时间:11/17/2023 最后编辑:David Wohlferddopyman 更新时间:11/17/2023 访问量:45

问:

我想以这种格式调整光标的中心。欲望格式化

但是,我的代码以这种格式显示。格式错误

请帮我把我的代码调整为我想要的格式。我希望我提供的代码和图片对您有所帮助。请帮忙谢谢。

我的代码:

Locate PROC
    ; Set the cursor position to the middle of the screen
    mov   dh, 10 ; row 10
    mov   dl, 30 ; column 30
    call  Gotoxy ; locate cursor
    ret
Locate ENDP
程序集 x86 irvine32

评论

0赞 phuclv 11/17/2023
为什么我不应该上传代码/数据/错误的图像?
1赞 David Wohlferd 11/17/2023
Locate将光标移动到 10,30。然后打印第一行并进行输入。但是在打印第二行之前,您会做什么?你不能再打电话了,因为这会直接回到 10,30(这不是你想要的)。Locate

答: 暂无答案