]> git.sur5r.net Git - cc65/commitdiff
Added some definitions for version 1.3 of the o65 format.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 10 Dec 2009 22:44:27 +0000 (22:44 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 10 Dec 2009 22:44:27 +0000 (22:44 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4516 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/o65.inc
include/o65.h

index 920e947d9debfa74571ea6a82816bd756eae37b6..5bdbe05cb59fba0f2f858f582f0989d78addfd78 100644 (file)
@@ -6,10 +6,10 @@
 ;*                                                                           */
 ;*                                                                           */
 ;*                                                                           */
-;* (C) 2002      Ullrich von Bassewitz                                       */
-;*               Wacholderweg 14                                             */
-;*               D-70597 Stuttgart                                           */
-;* EMail:        uz@musoftware.de                                            */
+;* (C) 2002-2009, Ullrich von Bassewitz                                      */
+;*                Roemerstrasse 52                                           */
+;*                D-70794 Filderstadt                                        */
+;* EMail:         uz@cc65.org                                                */
 ;*                                                                           */
 ;*                                                                           */
 ;* This software is provided 'as-is', without any expressed or implied       */
@@ -84,6 +84,21 @@ O65_ADDR_SIMPLE         =       $0800   ; Simple addressing
 O65_ADDR_DEFAULT        =       $0000   ; Default addressing
 O65_ADDR_MASK           =       $0800   ; Mask to extract addressing
 
+O65_CHAIN               =       $0400   ; Chained file, another one follows
+O65_CHAIN_MASK          =       $0400   ; Mask to extract chain flag
+
+O65_BSSZERO             =       $0200   ; BSS segment must be zeroed
+O65_BSSZERO_MASK        =       $0200   ; Mask to extract bss zero flag
+
+; The following is used if O65_CPU == 6502
+O65_CPU2_6502                  =       $0000   ; Executable is for 6502
+O65_CPU2_65C02          =       $0010   ; Executable is for 65C02
+O65_CPU2_65SC02         =       $0020   ; Executable is for 65SC02
+O65_CPU2_65CE02         =       $0030   ; Executable is for 65CE02
+O65_CPU2_6502X          =       $0040   ; Executable is for NMOS 6502
+O65_CPU2_65816_EMU      =       $0050   ; Executable is for 65816 in emul mode
+O65_CPU2_MASK           =       $00F0   ; Mask to extract CPU2 field
+
 O65_ALIGN_1             =       $0000   ; Bytewise alignment
 O65_ALIGN_2             =       $0001   ; Align words
 O65_ALIGN_4             =       $0002   ; Align longwords
index 3003f2c93e94732e47dd5fef6c147b348125c0bf..e33f98d97741f939f164a8cc32d9656f61ffa91b 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2002-2005 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2002-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -101,6 +101,21 @@ struct o65_header {
 #define O65_ADDR_DEFAULT        0x0000  /* Default addressing */
 #define O65_ADDR_MASK           0x0800  /* Mask to extract addressing */
 
+#define O65_CHAIN               0x0400  /* Chained file, another one follows */
+#define O65_CHAIN_MASK          0x0400  /* Mask to extract chain flag */
+
+#define O65_BSSZERO             0x0200  /* BSS segment must be zeroed */
+#define O65_BSSZERO_MASK        0x0200  /* Mask to extract bss zero flag */
+
+/* The following is used if O65_CPU == 6502 */
+#define O65_CPU2_6502          0x0000  /* Executable is for 6502 */
+#define O65_CPU2_65C02          0x0010  /* Executable is for 65C02 */
+#define O65_CPU2_65SC02         0x0020  /* Executable is for 65SC02 */
+#define O65_CPU2_65CE02         0x0030  /* Executable is for 65CE02 */
+#define O65_CPU2_6502X          0x0040  /* Executable is for NMOS 6502 */
+#define O65_CPU2_65816_EMU      0x0050  /* Executable is for 65816 in emul mode */
+#define O65_CPU2_MASK           0x00F0  /* Mask to extract CPU2 field */
+
 #define O65_ALIGN_1             0x0000  /* Bytewise alignment */
 #define O65_ALIGN_2             0x0001  /* Align words */
 #define O65_ALIGN_4             0x0002  /* Align longwords */