1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-28 00:30:12 +00:00

Use register variables

git-svn-id: svn://svn.cc65.org/cc65/trunk@1630 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-11-25 13:06:08 +00:00
parent e1385c925a
commit b4b1a82968

View File

@ -79,19 +79,15 @@ static const unsigned char sinustable[0x100] = {
static unsigned char *scrn; static void doplasma (register unsigned char* scrn)
static void doplasma (void)
{ {
unsigned char xbuf[40]; unsigned char xbuf[40];
unsigned char ybuf[25]; unsigned char ybuf[25];
unsigned char i,ii;
unsigned char c1a,c1b; unsigned char c1a,c1b;
unsigned char c2a,c2b; unsigned char c2a,c2b;
unsigned char c1A,c1B; unsigned char c1A,c1B;
unsigned char c2A,c2B; unsigned char c2A,c2B;
register unsigned char i, ii;
c1a = c1A; c1a = c1A;
c1b = c1B; c1b = c1B;
@ -165,6 +161,7 @@ int main (void)
unsigned long fps; unsigned long fps;
unsigned fps10; unsigned fps10;
#if defined(__C64__) #if defined(__C64__)
unsigned char block; unsigned char block;
#endif #endif
@ -206,13 +203,11 @@ int main (void)
t = clock (); t = clock ();
while (!kbhit()) { while (!kbhit()) {
/* Build page 1, then make it visible */ /* Build page 1, then make it visible */
scrn = (unsigned char*)SCREEN1; doplasma ((unsigned char*)SCREEN1);
doplasma ();
outb (&VIC.addr, PAGE1); outb (&VIC.addr, PAGE1);
/* Build page 2, then make it visible */ /* Build page 2, then make it visible */
scrn = (unsigned char*)SCREEN2; doplasma ((unsigned char*)SCREEN2);
doplasma ();
outb (&VIC.addr, PAGE2); outb (&VIC.addr, PAGE2);
/* Count frames */ /* Count frames */