0

hello anyones!

I'm trying to create a boot sector using assember. I have compile it into a bin file
and put it into the memory stick. when I'm start the computer and press f12 and shoose
my memory stick, it may write hello world on screen, but nothing happend! X(
how can I place the file in memory stick so that code is the first thing the computer will see when booting memo stick. my plan is to make my own OS, but first I'm must set
the boot sector in right place, and I don't know how to do this. and if I put the bin file first, will that make problems when run memo stick in windows??? :S

here is the code

ORG 0x7c00
    mov ah, 0eh
    xor bl, bl
    mov al, 'h'
    int 10h
    mov al, 'e'
    int 10h
    mov al, 'l'
    int 10h
    mov al, 'l'
    int 10h
    mov al, 'o'
    int 10h
    mov al, ' '
    int 10h
    mov al, 'w'
    int 10h
    mov al, 'o'
    int 10h
    mov al, 'r'
    int 10h
    mov al, 'l'
    int 10h
    mov al, 'd'
p:
    jmp p
times 512 - ($ - $$) db 0

Edited by emorjon2: n/a

2
Contributors
1
Reply
4
Views
7 Years
Discussion Span
Last Post by sDJh
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.