here is my C code(turboC)
Code: Select all
void testi(void)
{
printf("hey whats up");
asm iret
}
asm itesti:
asm jmp _testi
asm ret
void int_init()
{
word tmp;
asm cli;
asm xor ax,ax
asm mov es,ax
asm mov bx,itesti
asm mov WORD [es:83*4], bx
asm mov WORD [es:83*4+2], CS
asm sti
}
i have heard not to have anything in C outside of a function(even inline) so how would u go about doing what im trying to do
btw yes i have a custom made printf function thats not based on the C library(so it would work in my os)