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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.