adholioshake
Programmer
- Feb 9, 2003
- 136
I have been attempting to write a bootable floppy in assembly and have got this code so far. The problem is that I don't know where the data has got to ?! Can anyone point me in the right direction for finding it !
Thanks, Adonai.
PS: the code is here if you want to take a look
Thanks, Adonai.
PS: the code is here if you want to take a look
Code:
code segment
assume cs:code
org 100h
program:
dw offset start,7C0h
jmp start
dataarea:
msg1 db 'Bootable disk'
msg2 db 'Loading operating system'
start:
push cs
pop ds
; Clear Screen
mov ax,0600h
mov cx,0000h
mov dx,184Fh
mov bh,03h
int 10h
; Display a nice message...
mov si,offset msg1
call message
message: ; Dump ds:si to screen.
lodsb ; load byte at ds:si into al
or al,al ; test if character is 0 (end)
jz done
mov ah,0Eh ; put character
mov bx,0007h ; attribute
int 10h
jmp message
done:
ret
; OK, just hang for now...
hang:
jmp hang
org 510
dw 0AA55h ; Boot signature
ret
ends
end program