My New Boot serctor need a bit of help
Posted: Sat Jul 19, 2008 9:30 pm
Can you tell me what i am doing wrong here and how to correct it. what i was doing is print 1 string message and load the next sector. In my next sector will be the kernel which i will give what the users want in my Patricknet BETA 0.2 version which i want to turns some heads. I am not using LBA just standard CHS. I spent 2 days working on this fixing the print message error and creating the load sector part.
Code: Select all
;Book Disk Designed For Patricknet Systems
;Built By PatrickV(Project Manager)
;Free to use this bootsector with no limits and is Opensource
[bits 16]
[org 0x7c00]
jmp Start
; Data Strap
msg db 'Patricknet Bootstrap - Version: 0.0.1 (BETA) (20/7/2008)',13,10,0
Start:
xor ax, ax
mov ds, ax
mov si, msg
mov bx,512 ;Buffer
mov ah,02h
mov al,1 ; Number of Sectors to read
mov ch,0 ; Track Number
mov cl,2 ; Sector Number
mov dh,0 ; Head Number
mov dl,0 ; Drive Number
int 0x13
ch_loop:lodsb
or al, al
jz hang
mov ah, 0x0E
int 0x10
jmp ch_loop
hang:
jmp hang
padding TIMEs 510-($-$$) db 0
;Flag Point Form Bios To Notice That This A Patricknet Boot Sector Is Vaild By Signature
Dw 0AA55h