32x: initial code (security code passes)
[picodrive.git] / pico / 32x / 32x.c
CommitLineData
be2c4208 1#include "../pico_int.h"
2
3struct Pico32x Pico32x;
4
5void Pico32xStartup(void)
6{
7 elprintf(EL_STATUS|EL_32X, "32X startup");
8
9 PicoAHW |= PAHW_32X;
10 PicoMemSetup32x();
11
12 // probably should only done on power
13// memset(&Pico32x, 0, sizeof(Pico32x));
14
15 if (!Pico.m.pal)
16 Pico32x.vdp_regs[0] |= 0x8000;
17
18 // prefill checksum
19 Pico32x.regs[0x28/2] = *(unsigned short *)(Pico.rom + 0x18e);
20}
21
22void Pico32xInit(void)
23{
24 // XXX: mv
25 Pico32x.regs[0] = 0x0082;
26}
27
28void PicoReset32x(void)
29{
30}
31