opearting system design
Posted: Sun Jan 27, 2013 7:18 am
I am designing a new os.....on win xp.............this is d boot code............
...............................................................i compiled and got d bin file..........now i want to boot it from pendrive.........i hav copied the bin file to pendrive..and changed d boot order to boot from os frst.bt i am not able to get the welcome msg.......plz help me..................i have tried from cd also bt unable to view d welcome msg...........
Code: Select all
BITS 16
jmp 07c0h
msg db "WELCOME TO G1 OS",0
msg1 db "Press Enter to Continue",0
start:
mov ax,cs
mov ds,ax
mov es,ax
;prompt
call prompt
;setting the cursor
mov dh,9
mov dl,30
call set_cursor
;welcome msg
xor ax,ax
mov si,msg
call print
mov dh,12
mov dl,45
call set_cursor
mov si,msg1
call print
call wait_enter
prompt:
mov ah,00h
mov al,10h
int 10h
mov ah,0Bh
mov bh,00h
mov bl,0Ah
int 10h
ret
set_cursor:
mov ah,02
mov bh,00
int 10h
ret
print:
mov ah,0Eh
mov bh,00h
mov bl,07
lodsb
cmp al,0
je end
int 10h
jmp print
end:
ret
wait_enter:
mov ah,10h
int 16h
cmp ah,1ch
je end1
jmp wait_enter
end1:
ret
hang:
jmp hang
times 510-($-$$) db 0
dw 0AA55h