Hello,
Anybody has experience with 8bitworksopide??
The example provided for galaxian/scramble hardware dosen't work in mame or i can't get it to work.... I gues the memory map is not right...
https://8bitworkshop.com/v3.12.0/?platform=galaxian-scramble&file=gfxtest.c
Here is the part of the code where help is needed:
Many thanks!
Anybody has experience with 8bitworksopide??
The example provided for galaxian/scramble hardware dosen't work in mame or i can't get it to work.... I gues the memory map is not right...
https://8bitworkshop.com/v3.12.0/?platform=galaxian-scramble&file=gfxtest.c
Here is the part of the code where help is needed:
C:
#include <string.h>
typedef unsigned char byte;
typedef unsigned short word;
typedef signed char sbyte;
byte __at (0x4800) vram[32][32];
struct {
byte scroll;
byte attrib;
} __at (0x5000) vcolumns[32];
struct {
byte xpos;
byte code;
byte color;
byte ypos;
} __at (0x5040) vsprites[8];
struct {
byte unused1;
byte xpos;
byte unused2;
byte ypos;
} __at (0x5060) vmissiles[8];
byte __at (0x5080) xram[128];
byte __at (0x6801) enable_irq;
byte __at (0x6804) enable_stars;
byte __at (0x7000) watchdog;
volatile byte __at (0x8100) input0;
volatile byte __at (0x8101) input1;
volatile byte __at (0x8102) input2;
void main();
void start() {
__asm
LD SP,#0x4800
DI
__endasm;
main();
}
const char __at (0x5000) palette[32] = {/*{pal:332,n:4}*/
0x00,0x80,0xf0,0xff,0x00,0xf0,0xc0,0x7f,
0x00,0xc0,0x04,0x1f,0x00,0xd0,0xd0,0x0f,
0x00,0xc0,0xc0,0x0f,0x00,0x04,0x04,0x0f,
0x00,0xff,0x0f,0xf0,0x00,0x7f,0x0f,0xdf,
};
const char __at (0x4000) tilerom[0x1000] = {/*{w:16,h:16,remap:[3,0,1,2,4,5,6,7,8,9,10],brev:1,np:2,pofs:2048,count:64}*/
0x00,0xfe,0x82,0x82,0x82,0xfe,0xfe,0x00,0x00,0x00,0xfe,0xfe,0xc0,0x00,0x00,0x00,0x00,0xf2,0xf2,0x92,0x92,0x9e,0x9e,0x00,0x00,0xfe,0xfe,0x92,0x92,0x82,0x00,0x00,0x08,
.
.
.
.
};
Many thanks!
