First i would start off by getting a bootloader, to make testing easier, i would suggest "bootprog" see here
http://alexfru.chat.ru/epm.html
Its is written with nasm, but DexOS and MiniDos comes with a fasm ver.
Now you have your bootloader setup, start making simple com or exe for realmode that print to screen or display time etc
Example of print string, using int 10h
use16 ; 16bit addressing
org 0x100 ; Com file stuff
push cs ; Push CS on stack
pop ds ; Move CS into DS
push ds ; Push DS
pop es ; Move DS into ES
mov si,mes ; Point SI to string
call print ; Call print function
jmp $ ;just loop for now
;====================================================;
; print. ;
;====================================================;
print:
mov ah,0Eh ; Request display
again1:
lodsb ; load a byte into AL from DS:SI
or al,al ; Or AL
jz done1 ; Jump 0, to label done1
int 10h ; Call interrupt service
jmp again1 ; Jump to label again1
done1:
ret ; Return
mes db 'Hello World!', 13, 10, 0
Assemble it as a com file eg:
c:/fasm HelloTest.asm HelloTest.com <enter>
You will need to mod bootprog to load a file called "HelloTest.com" see in its zip for instrutions on how to do this.
Regards Dex.
PS: Take a look at MiniDos for a good realmode example, it's on the fasm forum.