NASM X86_64清除屏幕,更改颜色和光标位置不会设置

发布于 2025-02-05 03:23:05 字数 525 浏览 2 评论 0原文

我有一个我忙于的项目,并且已经掌握了其中的最大部分,

但是,最后一部分我无法正确。每当我尝试从其他帖子中尝试一些东西时,它都会崩溃。

过用于清理屏幕的

    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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文