From 03273a03f835c05743ccb083ff2a8cfd938b1410 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 20 Sep 2001 14:08:24 +0000 Subject: [PATCH] CBM510 update git-svn-id: svn://svn.cc65.org/cc65/trunk@956 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- samples/mousedemo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/samples/mousedemo.c b/samples/mousedemo.c index 840055b16..cea23c24e 100644 --- a/samples/mousedemo.c +++ b/samples/mousedemo.c @@ -25,8 +25,8 @@ # define SPRITE0_DATA 0x0E00 # define SPRITE0_PTR 0x07F8 #elif defined(__CBM510__) -# define SPRITE0_DATA 0xF800 -# define SPRITE0_PTR 0xF7F8 +# define SPRITE0_DATA 0xF400 +# define SPRITE0_PTR 0xF3F8 #endif /* The mouse sprite (an arrow) */ @@ -99,7 +99,11 @@ int main (void) *(unsigned char*)SPRITE0_PTR = SPRITE0_DATA / 64; /* Set the color of sprite 0 */ +#ifdef __CBM510__ + pokebsys ((unsigned) &VIC.spr0_color, COLOR_WHITE); +#else VIC.spr0_color = COLOR_WHITE; +#endif /* Initialize the mouse */ mouse_init (MOUSE_CBM1351); -- 2.39.5