]> git.sur5r.net Git - cc65/blobdiff - asminc/o65.inc
Made the code that logs indirect-goto referals be a little more efficient.
[cc65] / asminc / o65.inc
index 920e947d9debfa74571ea6a82816bd756eae37b6..6e0caa76b001cf9912cda73d2d181e3901d1de68 100644 (file)
@@ -1,15 +1,15 @@
 ;*****************************************************************************/
 ;*                                                                           */
-;*                                         o65.inc                                  */
+;*                                  o65.inc                                  */
 ;*                                                                           */
-;*                   Definitions for the o65 file format                    */
+;*                    Definitions for the o65 file format                    */
 ;*                                                                           */
 ;*                                                                           */
 ;*                                                                           */
-;* (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       */
@@ -64,7 +64,7 @@ O65_MAGIC_2             =       $35     ; '5'
 O65_VERSION             =       $00
 
 ; Defines for the mode word
-O65_CPU_65816           =       $8000          ; Executable is for 65816
+O65_CPU_65816           =       $8000   ; Executable is for 65816
 O65_CPU_6502            =       $0000   ; Executable is for the 6502
 O65_CPU_MASK            =       $8000   ; Mask to extract CPU type
 
@@ -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
@@ -112,14 +127,14 @@ O65_SEGID_MASK          =       $07
 
 ; Option tags
 O65_OPT_FILENAME        =       0
-O65_OPT_OS                     =       1
-O65_OPT_ASM                    =       2
-O65_OPT_AUTHOR                 =       3
-O65_OPT_TIMESTAMP              =       4
+O65_OPT_OS              =       1
+O65_OPT_ASM             =       2
+O65_OPT_AUTHOR          =       3
+O65_OPT_TIMESTAMP       =       4
 
 ; Operating system codes for O65_OPT_OS
-O65_OS_OSA65                   =       1
-O65_OS_LUNIX                   =       2
+O65_OS_OSA65            =       1
+O65_OS_LUNIX            =       2
 O65_OS_CC65             =       3
 O65_OS_OPENCBM          =       4