Gustavo López wrote:
> I have a problem when compiling. I use assembly and when i write code
> like:
>
> void set_video(void){
> __asm__ __volatile__("
> movw $0,%ax
> int $0x10
> ");
> }
>
> then i compile it and it works, but when i run the program i get an
> error message.
> I know the problem is the line "int 0x10".
> Does anyone how it could work?
It couldn't work. MinGW generates Win32 exe's, so you can't call
interruptions.
If you really feel like using interruptions, and not the Win32 API,
download DJGPP, compile your program with it, and run your program in
DOS environment (aka: not on Win NT/2k/XP).
Remember that if you're programming in a real operating system, you
should use system calls, not interruptions.
Daniel K. O.
|