: void GOVGA16 ()
{AH= 0;
AL=0x12;
$ INT 0x10
}

: void GOTEXTMODE ()
{AH= 0;
AL=0x3;
$ INT 0x10
}

: void WAITRETR ()
{
WAIT1:
     $ MOV DX,0x3DA;
     $ IN AL,DX;
     $ TEST AL,8;
     $ JNE WAIT1

WAIT2:
     $ IN AL,DX;
     $ TEST AL,8;
     $JE WAIT2
}