CBM510 update
git-svn-id: svn://svn.cc65.org/cc65/trunk@956 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
# define SPRITE0_DATA 0x0E00
|
# define SPRITE0_DATA 0x0E00
|
||||||
# define SPRITE0_PTR 0x07F8
|
# define SPRITE0_PTR 0x07F8
|
||||||
#elif defined(__CBM510__)
|
#elif defined(__CBM510__)
|
||||||
# define SPRITE0_DATA 0xF800
|
# define SPRITE0_DATA 0xF400
|
||||||
# define SPRITE0_PTR 0xF7F8
|
# define SPRITE0_PTR 0xF3F8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The mouse sprite (an arrow) */
|
/* The mouse sprite (an arrow) */
|
||||||
@@ -99,7 +99,11 @@ int main (void)
|
|||||||
*(unsigned char*)SPRITE0_PTR = SPRITE0_DATA / 64;
|
*(unsigned char*)SPRITE0_PTR = SPRITE0_DATA / 64;
|
||||||
|
|
||||||
/* Set the color of sprite 0 */
|
/* Set the color of sprite 0 */
|
||||||
|
#ifdef __CBM510__
|
||||||
|
pokebsys ((unsigned) &VIC.spr0_color, COLOR_WHITE);
|
||||||
|
#else
|
||||||
VIC.spr0_color = COLOR_WHITE;
|
VIC.spr0_color = COLOR_WHITE;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Initialize the mouse */
|
/* Initialize the mouse */
|
||||||
mouse_init (MOUSE_CBM1351);
|
mouse_init (MOUSE_CBM1351);
|
||||||
|
|||||||
Reference in New Issue
Block a user