mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-06-02 08:38:43 +02:00
Procesing load_rom and membnk
This commit is contained in:
parent
0e0aa6637f
commit
a587bbb962
|
@ -44,6 +44,7 @@
|
|||
#include "../m68k/m68k.h"
|
||||
#include "../mem68k.h"
|
||||
#include "../membnk.h"
|
||||
#include "../state.h"
|
||||
|
||||
/* Some notes from 8BitWizard (http://gendev.spritesmind.net/forum/viewtopic.php?t=206):
|
||||
*
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
#include "sram.h"
|
||||
#include "ggenie.h"
|
||||
#include "areplay.h"
|
||||
#include "state.h"
|
||||
|
||||
/* Cart database entry */
|
||||
typedef struct
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include "../m68k/m68k.h"
|
||||
#include "../mem68k.h"
|
||||
#include "../membnk.h"
|
||||
#include "../state.h"
|
||||
#include "sram.h"
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "../../genesis.h"
|
||||
#include "../../m68k/m68k.h"
|
||||
#include "../../membnk.h"
|
||||
#include "../../state.h"
|
||||
#include "svp.h"
|
||||
|
||||
svp_t *svp;
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "../m68k/m68k.h"
|
||||
#include "../mem68k.h"
|
||||
#include "../membnk.h"
|
||||
#include "../state.h"
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
/* backup RAM cartridge (max. 512KB) */
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "../m68k/m68k.h"
|
||||
#include "../mem68k.h"
|
||||
#include "../membnk.h"
|
||||
#include "../state.h"
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
/* Unused area (return open bus data, i.e prefetched instruction word) */
|
||||
|
|
|
@ -99,11 +99,6 @@ typedef struct
|
|||
} PERIPHERALINFO;
|
||||
|
||||
|
||||
ROMINFO rominfo;
|
||||
uint8_t romtype;
|
||||
|
||||
static uint8_t rom_region;
|
||||
|
||||
/***************************************************************************
|
||||
* Genesis ROM Manufacturers
|
||||
*
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
#include "io_ctrl.h"
|
||||
#include "state.h"
|
||||
|
||||
t_zbank_memory_map zbank_memory_map[256];
|
||||
|
||||
/*
|
||||
Handlers for access to unused addresses and those which make the
|
||||
machine lock up.
|
||||
|
|
|
@ -54,5 +54,4 @@ typedef struct
|
|||
void (*write)(unsigned int address, unsigned int data);
|
||||
} t_zbank_memory_map;
|
||||
|
||||
extern t_zbank_memory_map zbank_memory_map[256];
|
||||
|
||||
|
|
|
@ -16,3 +16,12 @@ uint8_t io_reg[0x10];
|
|||
uint8_t region_code = REGION_USA;
|
||||
struct port_t port[3];
|
||||
|
||||
// load_rom.c
|
||||
|
||||
ROMINFO rominfo;
|
||||
uint8_t romtype;
|
||||
uint8_t rom_region;
|
||||
|
||||
// membnk.c
|
||||
|
||||
t_zbank_memory_map zbank_memory_map[256];
|
14
core/state.h
14
core/state.h
|
@ -1,6 +1,8 @@
|
|||
#include <stdint.h>
|
||||
#include "genesis.h"
|
||||
#include "io_ctrl.h"
|
||||
#include "loadrom.h"
|
||||
#include "membnk.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
|
@ -18,4 +20,14 @@ extern uint8_t tmss[4]; // TMSS security register
|
|||
|
||||
extern uint8_t io_reg[0x10];
|
||||
extern uint8_t region_code;
|
||||
extern struct port_t port[3];
|
||||
extern struct port_t port[3];
|
||||
|
||||
// load_rom.h
|
||||
|
||||
extern ROMINFO rominfo;
|
||||
extern uint8_t romtype;
|
||||
extern uint8_t rom_region;
|
||||
|
||||
// membnk.h
|
||||
|
||||
extern t_zbank_memory_map zbank_memory_map[256];
|
Loading…
Reference in New Issue
Block a user