2018-08-12 03:46:21 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* Sega Master System / GameGear Emulator
|
|
|
|
* Copyright (C) 1998-2007 Charles MacDonald
|
|
|
|
*
|
|
|
|
* additionnal code by Eke-Eke (SMS Plus GX)
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
* Z80 Memory handlers
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2019-03-07 18:03:53 +00:00
|
|
|
#ifndef MEMZ80_H_
|
|
|
|
#define MEMZ80_H_
|
2018-08-12 03:46:21 +00:00
|
|
|
|
|
|
|
/* Global data */
|
2019-03-07 18:03:53 +00:00
|
|
|
extern uint8_t data_bus_pullup;
|
|
|
|
extern uint8_t data_bus_pulldown;
|
2018-08-12 03:46:21 +00:00
|
|
|
|
|
|
|
/* Function prototypes */
|
2019-03-07 18:03:53 +00:00
|
|
|
extern uint8_t z80_read_unmapped(void);
|
2019-03-13 00:48:28 +00:00
|
|
|
extern void gg_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t gg_port_r(uint16_t port);
|
|
|
|
extern void ggms_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t ggms_port_r(uint16_t port);
|
|
|
|
extern void sms_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t sms_port_r(uint16_t port);
|
|
|
|
extern void smsj_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t smsj_port_r(uint16_t port);
|
|
|
|
extern void md_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t md_port_r(uint16_t port);
|
|
|
|
extern void tms_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t tms_port_r(uint16_t port);
|
|
|
|
extern void coleco_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t coleco_port_r(uint16_t port);
|
2018-08-12 03:46:21 +00:00
|
|
|
|
2019-09-18 19:52:11 +00:00
|
|
|
#ifdef SORDM5_EMU
|
2019-09-18 18:14:34 +00:00
|
|
|
extern void sordm5_port_w(uint16_t port, uint8_t data);
|
|
|
|
extern uint8_t sordm5_port_r(uint16_t port);
|
2019-09-18 19:52:11 +00:00
|
|
|
#endif
|
2019-09-18 18:14:34 +00:00
|
|
|
|
2019-03-13 00:48:28 +00:00
|
|
|
#endif /* _MEMZ80_H_ */
|