|
@@ -16,11 +16,17 @@
|
|
{$MODESWITCH OUT+}
|
|
{$MODESWITCH OUT+}
|
|
{$PACKRECORDS 2}
|
|
{$PACKRECORDS 2}
|
|
|
|
|
|
|
|
+{$IFNDEF FPC_DOTTEDUNITS}
|
|
unit vdi;
|
|
unit vdi;
|
|
|
|
+{$ENDIF FPC_DOTTEDUNITS}
|
|
|
|
|
|
interface
|
|
interface
|
|
|
|
|
|
|
|
+{$IFDEF FPC_DOTTEDUNITS}
|
|
|
|
+uses AtariApi.Gemcmmn;
|
|
|
|
+{$ELSE FPC_DOTTEDUNITS}
|
|
uses gemcmmn;
|
|
uses gemcmmn;
|
|
|
|
+{$ENDIF FPC_DOTTEDUNITS}
|
|
|
|
|
|
{ The API description of this file is based on the information available
|
|
{ The API description of this file is based on the information available
|
|
online at: https://freemint.github.io/tos.hyp/en/index.html }
|
|
online at: https://freemint.github.io/tos.hyp/en/index.html }
|
|
@@ -396,6 +402,7 @@ var
|
|
_ptsin: TVDIPtsIn;
|
|
_ptsin: TVDIPtsIn;
|
|
_ptsout: TVDIPtsOut;
|
|
_ptsout: TVDIPtsOut;
|
|
|
|
|
|
|
|
+{$ifndef FPDOC}
|
|
const
|
|
const
|
|
pblock: TVDIPB = (
|
|
pblock: TVDIPB = (
|
|
control: @_contrl;
|
|
control: @_contrl;
|
|
@@ -404,6 +411,7 @@ const
|
|
intout: @_intout;
|
|
intout: @_intout;
|
|
ptsout: @_ptsout;
|
|
ptsout: @_ptsout;
|
|
); public name 'vdipb';
|
|
); public name 'vdipb';
|
|
|
|
+{$ENDIF}
|
|
|
|
|
|
function string_to_vdi(const src: shortstring; dst: psmallint): smallint;
|
|
function string_to_vdi(const src: shortstring; dst: psmallint): smallint;
|
|
var
|
|
var
|
|
@@ -455,7 +463,7 @@ asm
|
|
movea.l (a7)+,a2
|
|
movea.l (a7)+,a2
|
|
end;
|
|
end;
|
|
|
|
|
|
-function vq_vgdos: LongInt; assembler; assembler; nostackframe;
|
|
|
|
|
|
+function vq_vgdos: LongInt; assembler; nostackframe;
|
|
asm
|
|
asm
|
|
pea.l (a2)
|
|
pea.l (a2)
|
|
moveq.l #-2,d0
|
|
moveq.l #-2,d0
|