NASM X86_64清除屏幕,更改颜色和光标位置不会设置
我有一个我忙于的项目,并且已经掌握了其中的最大部分,
但是,最后一部分我无法正确。每当我尝试从其他帖子中尝试一些东西时,它都会崩溃。
过用于清理屏幕的
mov al, 00h
mov bh, 0
mov bh, 0
mov ah, 2
int 10h
已经尝试
mov ah, 09h
mov cx, 1000h
mov al, 20h
mov bl, 17 ; This is Blue & White.
尝试
mov ah, 2
mov bh, 0
mov dl, 10
mov dh, 0
int 10h
我 我正在用nasm x86_64写作 不要以为我应该在线发布作业,因为我不想在大学
编辑中遇到问题:添加了不起作用的光标代码的示例
I have this project that I am busy with and have gotten the biggest part of it out of the way
However, this last part I just can't get right. Every time when I try something out from a different post it would crash.
I have tried this for the clearing screen for example
mov al, 00h
mov bh, 0
mov bh, 0
mov ah, 2
int 10h
I have tried this for changing the color of the screen to white on blue
mov ah, 09h
mov cx, 1000h
mov al, 20h
mov bl, 17 ; This is Blue & White.
And of course the cursor positioning doesn't work either
mov ah, 2
mov bh, 0
mov dl, 10
mov dh, 0
int 10h
I just don't know what to do at this point
I am writing in NASM x86_64 by the way
Don't think I should post my assignment online because I don't want to get in issues with my university
edit: added an example of a curser code that didn't work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论