Genesis-Plus-GX/source/genesis.h

33 lines
700 B
C
Raw Normal View History

2007-08-10 22:34:06 +02:00
#ifndef _GENESIS_H_
#define _GENESIS_H_
/* Global variables */
extern uint8 *cart_rom;
extern uint8 work_ram[0x10000];
extern uint8 zram[0x2000];
extern uint8 zbusreq;
extern uint8 zbusack;
extern uint8 zreset;
extern uint8 zirq;
extern uint32 zbank;
extern uint8 gen_running;
extern uint32 lastbusreqcnt;
extern uint8 lastbusack;
extern uint32 genromsize;
/* Function prototypes */
void gen_init(void);
void gen_reset(void);
void gen_shutdown(void);
int gen_busack_r(void);
void gen_busreq_w(int state);
void gen_reset_w(int state);
void gen_bank_w(int state);
void bswap(uint8 *mem, int length);
int z80_irq_callback(int param);
void m68k_irq_ack_callback(int int_level);
#endif /* _GEN_H_ */