Damm, it still wont work :|
i tried with the cur code
char milie;
_asm
{
push dx
push ax
mov ah,2ch
int 21h
mov milie, dl
pop ax
pop dx
}
and it still gets that error of ilegal operation
i tried with the cur code
char milie;
_asm
{
push dx
push ax
mov ah,2ch
int 21h
mov milie, dl
pop ax
pop dx
}
and it still gets that error of ilegal operation
I have no clue on where is the error but i suggest you get a tutorial on how to interface c and assembler when doin dos apps ..
you cannot call the old dos interupts when your program operates under the win32 protected mode.. Even if you make a console app with VC it´s still going to use win32. All interupt handling must be handled by programs that have the rights to use the interupts, such as graphic card drivers etc... If you really need to call thoose interupts you have to either make a program that have the rights to do it, make it a 16bit dos program (VC can´t do this) or get your program running under a diffrent dos extender if you need 32bit program.
Like everyone says, you just can''t use interuppts. Let me know if you want MASM 5.11 which will let you create 16-bit DOS apps (mail me).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement