Print ascii character on screen

为君一笑 提交于 2019-12-13 07:41:32

问题


I am writing a bootloader in assembly (NASM instruction set), but for some reason it doesn't show any letter.

[BITS 16]
[ORG 0x7C00]

JMP $ 

MOV AL, 0x65
MOV AH, 0x0E
MOV BL, 0x07
MOV BH, 0x00

INT 0x10

TIMES 510 - ($ - $$) db 0
DW 0xAA55

All I see is the _ cursor.


回答1:


JMP $

Jumps to itself. Removing it will let the other code run



来源:https://stackoverflow.com/questions/38085205/print-ascii-character-on-screen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!