home *** CD-ROM | disk | FTP | other *** search
- //===========================================================================
- //
- // CONSTANTS
- //
- //===========================================================================
- const SCREEN_WIDTH=320,SCREEN_HEIGHT=200;
-
- //===========================================================================
- //
- // FUNCTION PROTOTYPES
- //
- //===========================================================================
- extern "C" {
- void cls(char far *screen_adr);
- void setmode(int mode);
- void setpalette(char far *color_regs);
- void putwindow(int,int,int,int,char far *);
- void clrwin(int,int,int,int,char far *);
- void blitscreen(char far *);
- void putimage(int,int,int,int,char far *,char far *);
- }
-
- void waitvbi(void);
-
- void waitvbi()
- {
- asm mov dx, 0x3DA;
- test_1:
- asm {
- in al, dx
- test al,0x8
- jnz test_1
- }
- test_2:
- asm {
- in al, dx
- test al,0x8
- jz test_2
- }
- }