Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
io_mapper.h
Go to the documentation of this file.
1 /* A work-in-progess MEGA65 (Commodore-65 clone origins) emulator
2  Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  Copyright (C)2016-2022 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef XEMU_MEGA65_IO_MAPPER_H_INCLUDED
20 #define XEMU_MEGA65_IO_MAPPER_H_INCLUDED
21 
22 #include "xemu/cia6526.h"
23 
24 extern Uint8 io_read ( unsigned int addr );
25 extern void io_write ( unsigned int addr, Uint8 data );
26 
27 extern Uint8 D6XX_registers[0x100];
28 extern Uint8 D7XX[0x100]; // FIXME: newhack!
29 extern int fpga_switches;
30 extern struct Cia6526 cia1, cia2; // CIA emulation structures for the two CIAs
31 extern int port_d607; // ugly hack for C65 extended keys ...
32 
33 #endif
port_d607
int port_d607
Definition: io_mapper.c:43
cia6526.h
io_read
Uint8 io_read(unsigned int addr)
Definition: io_mapper.c:96
D7XX
Uint8 D7XX[0x100]
Definition: io_mapper.c:39
addr
int addr
Definition: dma65.c:81
m65-memcontent-generator.data
data
Definition: m65-memcontent-generator.py:119
Uint8
uint8_t Uint8
Definition: fat32.c:51
Cia6526
Definition: cia6526.h:37
D6XX_registers
Uint8 D6XX_registers[0x100]
Definition: io_mapper.c:38
io_write
void io_write(unsigned int addr, Uint8 data)
Definition: io_mapper.c:280
cia2
struct Cia6526 cia1 cia2
Definition: commodore_65.c:44
fpga_switches
int fpga_switches
Definition: io_mapper.c:37