]> git.sur5r.net Git - cc65/commitdiff
Some *(char*)0x???? replaced by (char*)0x???? to access parts of memory as arrays
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 4 Apr 2003 14:05:02 +0000 (14:05 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 4 Apr 2003 14:05:02 +0000 (14:05 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2036 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/geos/gsym.h

index 05d34651a4fe217695884e9d0c660dcfd0cea560..da32bda932a5fb2a932e23050a37a1fdc40943ea 100644 (file)
@@ -15,7 +15,7 @@
 #define nameBuf                char[17]
 #define blockBuf       char[256]
 
-#define        zpage           *(char*)0x0000
+#define        zpage           (char*)0x0000
 
 #define        CPU_DDR         *(char*)0x00
 #define        CPU_DATA        *(char*)0x01
 #define        bkvec           *(unsigned int*)0x0316
 #define        nmivec          *(unsigned int*)0x0318
 
-#define        APP_RAM         *(char*)0x0400
-#define        BACK_SCR_BASE   *(char*)0x6000
-#define        PRINTBASE       *(char*)0x7900
-#define        OS_VARS         *(char*)0x8000
+#define        APP_RAM         (char*)0x0400
+#define        BACK_SCR_BASE   (char*)0x6000
+#define        PRINTBASE       (char*)0x7900
+#define        OS_VARS         (char*)0x8000
 
 #define        diskBlkBuf      ((blockBuf)0x8000)
 #define fileHeader     (*(struct fileheader*)0x8100)
 #define        DrCCurDkNm      ((nameBuf)0x88dc)
 #define        DrDCurDkNm      ((nameBuf)0x88ee)
 #define        dir2Head        ((blockBuf)0x8900)
-#define        SPRITE_PICS     *(char*)0x8a00
+#define        SPRITE_PICS     (char*)0x8a00
 #define sprpic         ((char[8][64])0x8a00)
 #define COLOR_MATRIX   ((char[1000])0x8c00)
 #define objPointer     ((char[8])0x8ff8)
 
-#define        DISK_BASE       *(char*)0x9000
-#define        SCREEN_BASE     *(char*)0xa000
-#define        OS_ROM          *(char*)0xc000
-#define        OS_JUMPTAB      *(char*)0xc100
-#define        RAMC_BASE       *(char*)0xde00
-#define        RAMC_WINDOW     *(char*)0xdf00
-#define        EXP_BASE        *(char*)0xdf00
-#define        MOUSE_BASE_128  *(char*)0xfd00
-#define        MOUSE_JMP_128   *(char*)0xfd00
-#define        END_MOUSE_128   *(char*)0xfe80
-#define        MOUSE_BASE      *(char*)0xfe80
-#define        MOUSE_JMP       *(char*)0xfe80
+#define        DISK_BASE       (char*)0x9000
+#define        SCREEN_BASE     (char*)0xa000
+#define        OS_ROM          (char*)0xc000
+#define        OS_JUMPTAB      (char*)0xc100
+#define        EXP_BASE        (char*)0xdf00
+#define        MOUSE_BASE_128  (char*)0xfd00
+#define        MOUSE_JMP_128   (char*)0xfd00
+#define        END_MOUSE_128   (char*)0xfe80
+#define        MOUSE_BASE      (char*)0xfe80
+#define        MOUSE_JMP       (char*)0xfe80
 
 #define        config          *(char*)0xff00
-#define        END_MOUSE       *(char*)0xfffa
+#define        END_MOUSE       (char*)0xfffa
 #define        NMI_VECTOR      *(unsigned int*)0xfffa
 #define        RESET_VECTOR    *(unsigned int*)0xfffc
 #define        IRQ_VECTOR      *(unsigned int*)0xfffe
 
-#define        vicbase         *(char*)0xd000
-#define        sidbase         *(char*)0xd400
-#define        mmu             *(char*)0xd500
-#define        VDC             *(char*)0xd600
-#define        ctab            *(char*)0xd800
-#define        cia1base        *(char*)0xdc00
-#define        cia2base        *(char*)0xdd00
+#define        vicbase         (char*)0xd000
+#define        sidbase         (char*)0xd400
+#define        mmu             (char*)0xd500
+#define        VDC             (char*)0xd600
+#define        ctab            (char*)0xd800
+#define        cia1base        (char*)0xdc00
+#define        cia2base        (char*)0xdd00
 
 #define        mob0xpos        *(char*)0xd000
 #define        mob0ypos        *(char*)0xd001