#50463 - triton - Tue Aug 09, 2005 11:08 pm
Took poslundc's advice and took up coding in C. My first background, 256 * 256 and colors all wrong. Please help
#include "bg.h"
#define us *(unsigned short*)
#define uc *(unsigned char*)
#define ul *(unsigned long*)
int main()
{
volatile unsigned short *video=(unsigned short*) 0x6000000;
*(unsigned short*)0x4000000=(0x0400);
while(1)
{
us 0x400000c=0x1480;
ul 0x40000d4=bg1pal;
ul 0x40000d8=0x5000000;
ul 0x40000dc=0x94000080;
ul 0x40000d4=bg1;
ul 0x40000d8=0x6000000;
ul 0x40000dc=0x94004000;
ul 0x40000d4=bg1map;
ul 0x40000d8=0x600a000;
ul 0x40000dc=0x94000200;
}
}
#include "bg.h"
#define us *(unsigned short*)
#define uc *(unsigned char*)
#define ul *(unsigned long*)
int main()
{
volatile unsigned short *video=(unsigned short*) 0x6000000;
*(unsigned short*)0x4000000=(0x0400);
while(1)
{
us 0x400000c=0x1480;
ul 0x40000d4=bg1pal;
ul 0x40000d8=0x5000000;
ul 0x40000dc=0x94000080;
ul 0x40000d4=bg1;
ul 0x40000d8=0x6000000;
ul 0x40000dc=0x94004000;
ul 0x40000d4=bg1map;
ul 0x40000d8=0x600a000;
ul 0x40000dc=0x94000200;
}
}