the idea is to create a bootloader that will display a message on the screen this is the code i used and i named the file "boot.asm"
Code: Select all
; boot.asm
mov ax, 0x07c0
mov ds, ax
mov si, msg
ch_loop:lodsb
or al, al ; zero=end or str
jz hang ; get out
mov ah, 0x0E
int 0x10
jmp ch_loop
hang:
jmp hang
msg db 'Welcome to Macintosh', 13, 10, 0
times 510-($-$$) db 0
db 0x55
db 0xAA
Code: Select all
dd if=boot.bin of=/dev/fd0
Code: Select all
dd if=boot.bin of=/dev/sdb1
anyway all i need is a way to make my USB drive bootable with a message in the screen ... so if anyone can find what is best way to do this please help .
by the way i formated my 2GB USB flash disk with fdisk , Primary partition , 1 , default size , active , bootable , FAT16.
thanks in advance