So far i have an assembly script that lets you boot from it and write hello world to the screen. now i want to be able to write some c code and be able to have my assembly script run it somehow. Im using mingw gcc for my compiler. This is my bootloader in assembly:
org 7C00h
jmp short Start
Msg: db "Hello, world" EndMsg: Start: mov bx, 000Fh
mov cx, 1
xor dx, dx
mov ds, dx
cld Print: mov si, Msg
Char: mov ah, 2
int 10h
lodsb
mov ah, 9
int 10h
inc dl
cmp dl, 80
jne Skip
xor dl, dl
inc dh
cmp dh, 25
jne Skip
xor dh, dh
Skip: cmp si, EndMsg
jne Char
jmp Print times 0200h - 2 - ($ - $$) db 0
dw 0AA55h
My question is how to compile the c code so that the assembly script will execute it? also how would i edit my current boot loader so that would be possible?