|
Atari coding BBS
Re: STE Splitscreen access |
Posted by: Simon Sunnyboy / Paradize
|
Jun,03.2012-10:05
|
Hmm, I don't have a complete demo screen or game yet. My test program simply splits the screen and displays a logo from a wandering scanline and leaving the TOS screen intact. In C it looks like this:
extern unsigned char Logo[];
long Mymain()
{
/* unsigned char *physbase = Physbase(); */
unsigned short *palette_copy;
unsigned char i;
for(i=0, palette_copy = (unsigned short *)&Logo[2]; i < 16; i++)
{
STEPlayfield_LowerScreen.palette[i] = *palette_copy++;
}
STEPlayfield_UpperScreen.start_of_screen = Physbase();
STEPlayfield_UpperScreen.palette[0] = *(unsigned short *)0xFFFF8240UL;
STEPlayfield_UpperScreen.palette[1] = *(unsigned short *)0xFFFF8242UL;
STEPlayfield_UpperScreen.palette[2] = *(unsigned short *)0xFFFF8244UL;
STEPlayfield_UpperScreen.palette[3] = *(unsigned short *)0xFFFF8246UL;
STEPlayfield_UpperScreen.palette[4] = *(unsigned short *)0xFFFF8248UL;
STEPlayfield_UpperScreen.palette[5] = *(unsigned short *)0xFFFF824AUL;
STEPlayfield_UpperScreen.palette[6] = *(unsigned short *)0xFFFF824CUL;
STEPlayfield_UpperScreen.palette[7] = *(unsigned short *)0xFFFF824EUL;
STEPlayfield_UpperScreen.palette[8] = *(unsigned short *)0xFFFF8250UL;
STEPlayfield_UpperScreen.palette[9] = *(unsigned short *)0xFFFF8252UL;
STEPlayfield_UpperScreen.palette[10] = *(unsigned short *)0xFFFF8254UL;
STEPlayfield_UpperScreen.palette[11] = *(unsigned short *)0xFFFF8256UL;
STEPlayfield_UpperScreen.palette[12] = *(unsigned short *)0xFFFF8258UL;
STEPlayfield_UpperScreen.palette[13] = *(unsigned short *)0xFFFF825AUL;
STEPlayfield_UpperScreen.palette[14] = *(unsigned short *)0xFFFF825CUL;
STEPlayfield_UpperScreen.palette[15] = *(unsigned short *)0xFFFF825EUL;
STEPlayfield_UpperScreen.linewid = 0;
STEPlayfield_UpperScreen.hscroll = 0;
STEPlayfield_LowerScreen.start_of_screen = &Logo[34];
STEPlayfield_LowerScreen.linewid = 0;
STEPlayfield_LowerScreen.hscroll = 0;
STEPlayfield_Install(160);
for(i=160; i > 10; i--)
{
STEPlayfield_SplitLocation = (unsigned char)i;
Vsync();
}
Bconin(2);
STEPlayfield_Uninstall();
return 0;
}
Fill out the data structures, there is plenty of documentation in the header file and call the Install routine. Calling Uninstall resets the old Shifter settings and VBL/Timer B setups.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
STE Splitscreen access
|
Simon Sunnyboy / Paradize
|
May,27.2012-15:21
|
Re: STE Splitscreen access
|
nativ
|
May,28.2012-23:19
|
Re: STE Splitscreen access
|
Simon Sunnyboy / Paradize
|
May,29.2012-17:47
|
Re: STE Splitscreen access
|
ggn
|
May,29.2012-19:51
|
Re: STE Splitscreen access
|
Simon Sunnyboy / Paradize
|
May,30.2012-17:43
|
Re: STE Splitscreen access
|
ggn
|
Jun,03.2012-00:13
|
Re: STE Splitscreen access
|
Templeton
|
Jun,03.2012-02:16
|
Re: STE Splitscreen access
|
Simon Sunnyboy / Paradize
|
Jun,03.2012-10:05
|
Re: STE Splitscreen access
|
Templeton
|
Jun,03.2012-22:08
|
Re: STE Splitscreen access
|
Simon Sunnyboy / Paradize
|
Jun,03.2012-22:12
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|