我在玻色的一些组装时感到恐慌

发布于 2025-02-09 12:28:54 字数 783 浏览 1 评论 0原文

此图像在bootdir目录中运行命令“ bochs”时,我会在我的我的我的位置上显示命令“ bochs”时出现的错误汇编文件,图像,二进制文件和脚本都在,我观看的教程是在使用kali时使用ubuntu,我认为这是不相关的,但我希望您的帮助

是在启动时显示“ Hello”字符串(+模拟器生成的一些消息) 这是NASM代码:

[BITS 16]
[ORG 0x7c00]

start :  
    xor ax,ax
    mov ds,ax
    mov es,ax
    mov ss, ax
    mov sp, 0x7c00

PrintMessage :
    mov ah,0x13
    mov al, 1
    mov bx,0xa
    xor dx,dx
    mov bp, Message
    mov cx, MessageLen
    int 0x10

End :
    hlt
    jmp End

Message : db "Hello"
MessageLen : equ $-Message

times (0x1be -($-$$)) db 0

    db 80h
    db 0,2,0
    db 0f0h
    db 0ffh,0ffh,0ffh
    dd 1
    dd (20*16*63 - 1 )
    

    times (16*3) db 0

    db 0x55
    db 0xaa


this image showcase the error im getting when running the command "bochs" in the bootDIr directory where my assembly file , the image ,the binary and the script are at , the tutorial i watched was using ubuntu while im using kali,i dont think that was relevant but i would love your help

the goal is to show the "Hello" String when booting (+some messages generated by the emulator)
here is the nasm code:

[BITS 16]
[ORG 0x7c00]

start :  
    xor ax,ax
    mov ds,ax
    mov es,ax
    mov ss, ax
    mov sp, 0x7c00

PrintMessage :
    mov ah,0x13
    mov al, 1
    mov bx,0xa
    xor dx,dx
    mov bp, Message
    mov cx, MessageLen
    int 0x10

End :
    hlt
    jmp End

Message : db "Hello"
MessageLen : equ $-Message

times (0x1be -($-$)) db 0

    db 80h
    db 0,2,0
    db 0f0h
    db 0ffh,0ffh,0ffh
    dd 1
    dd (20*16*63 - 1 )
    

    times (16*3) db 0

    db 0x55
    db 0xaa


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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