1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00

Predefined #defines have changed.

Cosmetic changes.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3434 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-03-30 18:26:11 +00:00
parent 742cf43e30
commit 43a9802473
2 changed files with 36 additions and 28 deletions

View File

@ -45,6 +45,12 @@
/*****************************************************************************/
/* Data */
/*****************************************************************************/
/* Additional key defines */
#define CH_F1 224
#define CH_F2 225
@ -67,8 +73,6 @@
#define CH_F19 242
#define CH_F20 243
/* Color defines */
#define COLOR_BLACK 0x00
#define COLOR_WHITE 0x01
@ -88,31 +92,6 @@
#define COLOR_LIGHTBLUE 0x0E
#define COLOR_GRAY3 0x0F
/* Special routines to read/write bytes and words in the system bank */
unsigned char __fastcall__ peekbsys (unsigned addr);
unsigned __fastcall__ peekwsys (unsigned addr);
void __fastcall__ pokebsys (unsigned addr, unsigned char val);
void __fastcall__ pokewsys (unsigned addr, unsigned val);
#if defined(__OPT_i__) && defined(__OPT_s__)
#define peekbsys(addr) \
__AX__ = (addr), \
asm ("sta ptr1"), \
asm ("stx ptr1+1"), \
asm ("ldx $01"), \
asm ("lda #$0F"), \
asm ("sta $01"), \
asm ("ldy #$00"), \
asm ("lda (ptr1),y"), \
asm ("stx $01"), \
asm ("ldx #$00"), \
__AX__
#endif
/* Define hardware */
#include <_vic2.h>
#define VIC (*(struct __vic2*)0xD800)
@ -132,6 +111,35 @@ void __fastcall__ pokewsys (unsigned addr, unsigned val);
/*****************************************************************************/
/* Code */
/*****************************************************************************/
/* Special routines to read/write bytes and words in the system bank */
unsigned char __fastcall__ peekbsys (unsigned addr);
unsigned __fastcall__ peekwsys (unsigned addr);
void __fastcall__ pokebsys (unsigned addr, unsigned char val);
void __fastcall__ pokewsys (unsigned addr, unsigned val);
#if defined(__OPT_i__) && (__OPT_i__ >= 600)
#define peekbsys(addr) \
__AX__ = (addr), \
asm ("sta ptr1"), \
asm ("stx ptr1+1"), \
asm ("ldx $01"), \
asm ("lda #$0F"), \
asm ("sta $01"), \
asm ("ldy #$00"), \
asm ("lda (ptr1),y"), \
asm ("stx $01"), \
asm ("ldx #$00"), \
__AX__
#endif
/* End of cbm510.h */
#endif

View File

@ -108,7 +108,7 @@ unsigned __fastcall__ peekwsys (unsigned addr);
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"), \