I have the following function:
extern void SetMode(int);
#pragma aux SetMode ="int 10h"\
I need to modify this function to call interrupt 0x10 with 0x4F02 in the AX register, and the mode number in the BX register. How would I modify it to do so? I use Open Watcom v1.1 and have limited knowledge regarding interrupts.
If you were wondering, this is a function to set the video mode. Thus far, I can set it to 0x03 (text mode) and 0x13 (320x200x256colors). I need to set it to 0x111 (640x480x65,535 colors), but it needs the requested modification to do so.
Your help is greatly appreciated.