mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
Atari updates
git-svn-id: svn://svn.cc65.org/cc65/trunk@1140 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b39cc5a3a9
commit
5f7ca4b2f4
@ -75,6 +75,9 @@ int main (void)
|
|||||||
struct mouse_info info;
|
struct mouse_info info;
|
||||||
unsigned char Invisible;
|
unsigned char Invisible;
|
||||||
unsigned char Done;
|
unsigned char Done;
|
||||||
|
#if defined(__ATARI__)
|
||||||
|
unsigned char type;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Initialize the debugger */
|
/* Initialize the debugger */
|
||||||
DbgInit (0);
|
DbgInit (0);
|
||||||
@ -86,11 +89,6 @@ int main (void)
|
|||||||
cursor (0);
|
cursor (0);
|
||||||
clrscr ();
|
clrscr ();
|
||||||
|
|
||||||
/* Print a help line */
|
|
||||||
revers (1);
|
|
||||||
cputsxy (0, 0, "d: debug h: hide q: quit s: show ");
|
|
||||||
revers (0);
|
|
||||||
|
|
||||||
#if defined(__C64__) || defined(__C128__) || defined(__CBM510__)
|
#if defined(__C64__) || defined(__C128__) || defined(__CBM510__)
|
||||||
/* Copy the sprite data */
|
/* Copy the sprite data */
|
||||||
memcpy ((void*) SPRITE0_DATA, MouseSprite, sizeof (MouseSprite));
|
memcpy ((void*) SPRITE0_DATA, MouseSprite, sizeof (MouseSprite));
|
||||||
@ -110,11 +108,29 @@ int main (void)
|
|||||||
|
|
||||||
#elif defined(__ATARI__)
|
#elif defined(__ATARI__)
|
||||||
|
|
||||||
|
do {
|
||||||
|
cputs("\r\n");
|
||||||
|
cputs("0 = trak-ball\r\n");
|
||||||
|
cputs("1 = ST mouse\r\n");
|
||||||
|
cputs("2 = Amiga mouse\r\n");
|
||||||
|
cputs("Enter type (0-2): ");
|
||||||
|
type = cgetc();
|
||||||
|
cputc(type);
|
||||||
|
} while (type < '0' || type > '2');
|
||||||
|
type -= '0';
|
||||||
|
|
||||||
/* Initialize the mouse */
|
/* Initialize the mouse */
|
||||||
mouse_init (MOUSE_TRAKBALL);
|
mouse_init (type);
|
||||||
|
*(unsigned char *)0x2c0 = 15; /* set mouse cursor color (PM0) */
|
||||||
|
clrscr ();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Print a help line */
|
||||||
|
revers (1);
|
||||||
|
cputsxy (0, 0, "d: debug h: hide q: quit s: show ");
|
||||||
|
revers (0);
|
||||||
|
|
||||||
/* Test loop */
|
/* Test loop */
|
||||||
Done = 0;
|
Done = 0;
|
||||||
ShowState (Invisible = 1);
|
ShowState (Invisible = 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user