picodrive/pico/32x/32x.c
notaz be2c420828 32x: initial code (security code passes)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@772 be3aeb3a-fb24-0410-a615-afba39da0efa
2009-09-11 11:29:19 +00:00

31 lines
495 B
C

#include "../pico_int.h"
struct Pico32x Pico32x;
void Pico32xStartup(void)
{
elprintf(EL_STATUS|EL_32X, "32X startup");
PicoAHW |= PAHW_32X;
PicoMemSetup32x();
// probably should only done on power
// memset(&Pico32x, 0, sizeof(Pico32x));
if (!Pico.m.pal)
Pico32x.vdp_regs[0] |= 0x8000;
// prefill checksum
Pico32x.regs[0x28/2] = *(unsigned short *)(Pico.rom + 0x18e);
}
void Pico32xInit(void)
{
// XXX: mv
Pico32x.regs[0] = 0x0082;
}
void PicoReset32x(void)
{
}