From 336e53348b20c98525ea3809668cfea90a1144e8 Mon Sep 17 00:00:00 2001
From: "ol.sc"
Date: Wed, 22 Feb 2012 23:26:25 +0000
Subject: [PATCH] Introduced Apple GEOS specific directory entry offsets.
However in most cases the assembler code using them will need to
differentiate between CBM and Apple because the directory entry semantics are
(too) different.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5545 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
libsrc/geos-common/const.inc | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/libsrc/geos-common/const.inc b/libsrc/geos-common/const.inc
index 6aec72c60..e7958579c 100644
--- a/libsrc/geos-common/const.inc
+++ b/libsrc/geos-common/const.inc
@@ -278,6 +278,7 @@ OFF_GS_DTYPE = 189
OFF_OP_TR_SC = 171
OFF_GS_ID = 173
; dir entry
+.ifdef __GEOS_CBM__
FRST_FILE_ENTRY = 2
OFF_CFILE_TYPE = 0
OFF_DE_TR_SC = 1
@@ -285,9 +286,20 @@ OFF_FNAME = 3
OFF_GHDR_PTR = 19
OFF_GSTRUC_TYPE = 21
OFF_GFILE_TYPE = 22
-OFF_YEAR = 23
+OFF_DATE = 23
OFF_SIZE = 28
OFF_NXT_FILE = 32
+.else
+FRST_FILE_ENTRY = 43
+OFF_GSTRUC_TYPE = 0
+OFF_FNAME = 1
+OFF_GFILE_TYPE = 16
+OFF_DE_TR_SC = 17
+OFF_SIZE = 21
+OFF_DATE = 24
+OFF_GHDR_PTR = 31
+OFF_NXT_FILE = 39
+.endif
; file header
O_GHIC_WIDTH = 2
O_GHIC_HEIGHT = 3