TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: all
from: GLEN HATHAWAY 71446,166
date: 1991-12-25 12:57:09
subject: MM/1 Palette (cgfx.l)

#: 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?

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.