mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
32x: initial code (security code passes)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@772 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
000f53350c
commit
be2c420828
8 changed files with 340 additions and 5 deletions
31
pico/32x/32x.c
Normal file
31
pico/32x/32x.c
Normal file
|
@ -0,0 +1,31 @@
|
|||
#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)
|
||||
{
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue