Browse Source

h68units: new h68kutil unit, with various constans for now. more to come.

Karoly Balogh 1 year ago
parent
commit
6f7d2136c6

+ 1 - 0
packages/h68units/fpmake.pp

@@ -35,6 +35,7 @@ begin
         AddInclude('h68kdos.inc');
       end;
     T:=P.Targets.AddUnit('h68kiocs.pas');
+    T:=P.Targets.AddUnit('h68kutil.pas');
 
     P.ExamplePath.Add('examples');
     T:=P.Targets.AddExampleProgram('gradient.pas');

+ 3 - 0
packages/h68units/namespaced/Human68kApi.Util.pas

@@ -0,0 +1,3 @@
+unit Human68kApi.Util;
+{$DEFINE FPC_DOTTEDUNITS}
+{$i h68kutil.pas}

+ 32 - 0
packages/h68units/src/h68kutil.pas

@@ -0,0 +1,32 @@
+{
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2024 by Free Pascal development team
+
+    Utility functions and constants unit for Human 68k (Sharp X68000)
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+{$IFNDEF FPC_DOTTEDUNITS}
+unit h68kutil;
+{$ENDIF FPC_DOTTEDUNITS}
+
+interface
+
+const
+  VERTICAL_BLANKING_DETECTION = longint($80000000);
+  VERTICAL_BLANKING_NO_DETECT = 0;
+
+const
+  SP_DEFCG_8X8_TILE = 0;
+  SP_DEFCG_16X16_TILE = 1;
+
+implementation
+
+end.