Could somebody help me to translate to power basic this code portion written in pascal?
It would be of great help for my, thank you.
------------------
Gustavo Asplanatti
[email protected]
It would be of great help for my, thank you.
Code:
{$IFDEF NewInt08} {$F+} var LI : Longint; CONST Inside : Boolean = False; ClockInt : BYTE = $08; Smooth : Boolean = True; procedure NewTimer(Flags, CS, IP, AX, BX, CX, DX, SI, DI, DS, ES, BP: WORD); interrupt; begin IF Inside = True THEN begin IF Smooth THEN ASM pushf CALL OldTimer; sti END; ASM iret end; END; Inside := True; Driver_IO; ASM pushf CALL OldTimer; sti END; Inside := False; END; procedure NewExitProc; far; var SaveExitProc: POINTER; begin { ExitProc := @SaveExitProc;} SetIntVec(ClockInt, @OldTimer); SaveExitProc:=ExitProc; END; {$F-} {$ENDIF} begin IF Driver_Init THEN begin {$IFDEF NewInt08} SaveExitProc := ExitProc; ExitProc := @NewExitProc; GetIntVec(ClockInt, @OldTimer); SetIntVec(ClockInt, ADDR(NewTimer)); {$ENDIF} END; end.
------------------
Gustavo Asplanatti
[email protected]
Comment