Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
io_mapper.c File Reference
#include "xemu/emutools.h"
#include "io_mapper.h"
#include "memory_mapper.h"
#include "xemu/f011_core.h"
#include "dma65.h"
#include "vic4.h"
#include "vic4_palette.h"
#include "sdcard.h"
#include "hypervisor.h"
#include "ethernet65.h"
#include "input_devices.h"
#include "matrix_mode.h"
#include "audio65.h"
#include "configdb.h"
#include "mega65.h"
Include dependency graph for io_mapper.c:

Go to the source code of this file.

Macros

#define RETURN_ON_IO_READ_NOT_IMPLEMENTED(func, fb)
 
#define RETURN_ON_IO_WRITE_NOT_IMPLEMENTED(func)
 

Functions

Uint8 io_read (unsigned int addr)
 
void io_write (unsigned int addr, Uint8 data)
 
Uint8 io_dma_reader (int addr)
 
void io_dma_writer (int addr, Uint8 data)
 

Variables

int fpga_switches = 0
 
Uint8 D6XX_registers [0x100]
 
Uint8 D7XX [0x100]
 
struct Cia6526 cia1 cia2
 
int cpu_mega65_opcodes = 0
 
int port_d607 = 0xFF
 

Macro Definition Documentation

◆ RETURN_ON_IO_READ_NOT_IMPLEMENTED

#define RETURN_ON_IO_READ_NOT_IMPLEMENTED (   func,
  fb 
)
Value:
do { DEBUG("IO: NOT IMPLEMENTED read (emulator lacks feature), %s $%04X fallback to answer $%02X" NL, func, addr, fb); \
return fb; } while (0)

Definition at line 50 of file io_mapper.c.

◆ RETURN_ON_IO_WRITE_NOT_IMPLEMENTED

#define RETURN_ON_IO_WRITE_NOT_IMPLEMENTED (   func)
Value:
do { DEBUG("IO: NOT IMPLEMENTED write (emulator lacks feature), %s $%04X with data $%02X" NL, func, addr, data); \
return; } while(0)

Definition at line 53 of file io_mapper.c.

Function Documentation

◆ io_dma_reader()

Uint8 io_dma_reader ( int  addr)

Definition at line 525 of file io_mapper.c.

Here is the call graph for this function:

◆ io_dma_writer()

void io_dma_writer ( int  addr,
Uint8  data 
)

Definition at line 529 of file io_mapper.c.

Here is the call graph for this function:

◆ io_read()

Uint8 io_read ( unsigned int  addr)

Definition at line 96 of file io_mapper.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ io_write()

void io_write ( unsigned int  addr,
Uint8  data 
)

Definition at line 280 of file io_mapper.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ cia2

struct Cia6526 cia1 cia2

Definition at line 40 of file io_mapper.c.

◆ cpu_mega65_opcodes

int cpu_mega65_opcodes = 0

Definition at line 41 of file io_mapper.c.

◆ D6XX_registers

Uint8 D6XX_registers[0x100]

Definition at line 38 of file io_mapper.c.

◆ D7XX

Uint8 D7XX[0x100]

Definition at line 39 of file io_mapper.c.

◆ fpga_switches

int fpga_switches = 0

Definition at line 37 of file io_mapper.c.

◆ port_d607

int port_d607 = 0xFF

Definition at line 43 of file io_mapper.c.

addr
int addr
Definition: dma65.c:81
m65-memcontent-generator.data
data
Definition: m65-memcontent-generator.py:119
NL
#define NL
Definition: fat32.c:37
func
Uint8 func
Definition: hdos.c:41
DEBUG
#define DEBUG(...)
Definition: emutools_basicdefs.h:167