NASM Forum > Programming with NASM
Example INT 0x10 AH 0x0E in Bios
ramosaurio:
--- Quote from: fredericopissarra on February 06, 2019, 10:10:55 AM ---Try this:
--- Code: ---bits 16
jmp 0x7c0:_start ; I prefeer to use smaller offsets!
_start:
push cs
pop ds
cld
lea si,[msg]
.loop:
mov ah,0x0e
lodsb
test al,al
jz _exit
mov bx,7 ; page 0, white foreground.
int 0x10 ; probably int 0x10 destroys AX...
jmp .loop
_exit:
hlt
jmp _exit
msg: db `Hello!!!\0`
times 510-($-$$) db 0
dw 0xaa55
--- End code ---
--- End quote ---
Hello fredericopissarra i tried your code and in this case the program does nothing, only display the cursor blinking. I tried changing some things of your code, removing the halt instruction and changing the offset. But it gives the same result, the cursor blinking.
Anyway thanks for the answer.
Right now, i think that the best possible solution is try it in real hardware.
fredericopissarra:
--- Code: ---$ ls -l
total 4
-rw-r--r-- 1 frederico frederico 308 fev 6 19:48 boot.asm
$ nasm -f bin boot.asm -o boot.bin
$ qemu-system-i386 boot.bin
--- End code ---
Image attached...
Navigation
[0] Message Index
[*] Previous page
Go to full version