#: 13664 S12/OS9/68000 (OSK)
25-Dec-91 12:57:09
Sb: MM/1 Palette (cgfx.l)
Fm: GLEN HATHAWAY 71446,166
To: all
Hi all... I'm trying to write in C for the MM/1. I think the cgfx.l Palette
command has a problem. Try compiling and running this: main() {
int x,y;
for(x=0;x<256;x++)
{
Palette(1,2,x,00,00);
for(y=0;y<1500;y++);
}
for(x=0;x<256;x++)
{
Palette(1,2,00,x,00);
for(y=0;y<1500;y++);
}
for(x=0;x<256;x++)
{
Palette(1,2,00,00,x);
for(y=0;y<1500;y++);
}
system("display 1b 31 02 00 00 40");
}
See if it works on your MM/1. On mine, it outputs a '1' for every time Palette
is called. And blue doesn't change at all! Can anyone see an error in my code
that would cause this?
|