ASM - Extending boot loader
Dear Bona Fide Users,
I want to make a bootable program and the 512 limits of the bootloader aren't enough for me. I don't want to use any DOS commands; all what I want is the BIOS commands. Here is my code:
Code:
[BITS 16] ;Bits
[ORG 0x7C00] ;Origin
jmp 0x7E00 ;Jump to the offset directly after the boot sector
times 510 - ($ - $$) db 0 ;Fill the boot sector with 0x00s
dw 0xAA55 ;Boot Signature
mov al, 65 ;ASCII letter for 'A'
mov ah, 0x0e ;Print one character on the screen in TTY mode
mov bl, 0x07 ;FG: Grey BG:Black
mov bh, 0x00 ;Page number
int 10h ;Video Interrupt
jmp $ ;Infinite loop
BTW, I'm using the Netwide Assembler(NASM) on Ubuntu Karmic.