Added changes from Oliver Schmidt so the graphics oriented demo programs

can also be run on apple machines. Changed the makefile to account for the
special start address needed for these programs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3660 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2005-11-20 17:49:44 +00:00
parent 27f714c45a
commit 65c580f864
3 changed files with 65 additions and 25 deletions

View File

@@ -14,7 +14,11 @@
/* Graphics definitions */
#define GRAPHMODE TGI_MODE_320_200_2
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
# define GRAPHMODE TGI_MODE_280_192_6
#else
# define GRAPHMODE TGI_MODE_320_200_2
#endif
#define SCREEN_X (tgi_getmaxx()+1)
#define SCREEN_Y (tgi_getmaxy()+1)
#define MAXCOL (tgi_getmaxcolor()+1)
@@ -28,6 +32,12 @@
#define mulfp(_a,_b) ((((signed long)_a)*(_b))>>fpshift)
#define divfp(_a,_b) ((((signed long)_a)<<fpshift)/(_b))
/* Workaround missing clock stuff */
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
# define clock() 0
# define CLK_TCK 1
#endif
/* Use static local variables for speed */
#pragma staticlocals (1);