+/*****************************************************************************/
+/* Data */
+/*****************************************************************************/
+
+
+
/* Additional key defines */
#define CH_F1 224
#define CH_F2 225
#define CH_F19 242
#define CH_F20 243
-
-
/* Color defines */
#define COLOR_BLACK 0x00
#define COLOR_WHITE 0x01
#define COLOR_LIGHTBLUE 0x0E
#define COLOR_GRAY3 0x0F
+/* Define hardware */
+#include <_vic2.h>
+#define VIC (*(struct __vic2*)0xD800)
+
+#include <_sid.h>
+#define SID (*(struct __sid*)0xDA00)
+
+#include <_6526.h>
+#define CIA (*(struct __cia*)0xDC00)
+
+#include <_6551.h>
+#define ACIA (*(struct __6551*)0xDD00)
+
+#include <_6525.h>
+#define TPI1 (*(struct __6525*)0xDE00)
+#define TPI2 (*(struct __6525*)0xDF00)
+
+
+
+/*****************************************************************************/
+/* Code */
+/*****************************************************************************/
+
/* Special routines to read/write bytes and words in the system bank */
void __fastcall__ pokebsys (unsigned addr, unsigned char val);
void __fastcall__ pokewsys (unsigned addr, unsigned val);
-#if defined(__OPT_i__) && defined(__OPT_s__)
+#if defined(__OPT_i__) && (__OPT_i__ >= 600)
#define peekbsys(addr) \
__AX__ = (addr), \
asm ("sta ptr1"), \
-/* Define hardware */
-#include <_vic2.h>
-#define VIC (*(struct __vic2*)0xD800)
-
-#include <_sid.h>
-#define SID (*(struct __sid*)0xDA00)
-
-#include <_6526.h>
-#define CIA (*(struct __cia*)0xDC00)
-
-#include <_6551.h>
-#define ACIA (*(struct __6551*)0xDD00)
-
-#include <_6525.h>
-#define TPI1 (*(struct __6525*)0xDE00)
-#define TPI2 (*(struct __6525*)0xDF00)
-
-
-
/* End of cbm510.h */
#endif
void __fastcall__ pokebsys (unsigned addr, unsigned char val);
void __fastcall__ pokewsys (unsigned addr, unsigned val);
-#if defined(__OPT_i__) && defined(__OPT_s__)
+#if defined(__OPT_i__) && (__OPT_i__ >= 600)
#define peekbsys(addr) \
__AX__ = (addr), \
asm ("sta ptr1"), \