mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-01-11 23:43:13 +00:00
To test this, install AHI (probably preferably 4.18) and copy pi-ahi.audio to DEVS:AHI and PI-AHI to DEVS:AudioModes. The IRQ trigger magically doesn't work, so this all runs of vertical blank... meaning that it stops working pretty much the instant you try to use it in an RTG mode. Not very useful at the moment, but I need to take a break from working on this to do a bunch of work.
35 lines
914 B
C
35 lines
914 B
C
// SPDX-License-Identifier: MIT
|
|
/**
|
|
* pistorm
|
|
* emulator function declarations
|
|
*/
|
|
|
|
#ifndef _EMULATOR_H
|
|
#define _EMULATOR_H
|
|
|
|
// see feature_set_macros(7)
|
|
#define _GNU_SOURCE
|
|
|
|
#include <stdint.h>
|
|
|
|
/*
|
|
void write16(uint32_t address,uint16_t data);
|
|
uint16_t read16(uint32_t address);
|
|
void write8(uint32_t address,uint16_t data);
|
|
uint16_t read8(uint32_t address);
|
|
*/
|
|
|
|
void cpu_pulse_reset(void);
|
|
void m68ki_int_ack(uint8_t int_level);
|
|
unsigned int cpu_irq_ack(int level);
|
|
unsigned int m68k_read_memory_8(unsigned int address);
|
|
unsigned int m68k_read_memory_16(unsigned int address);
|
|
unsigned int m68k_read_memory_32(unsigned int address);
|
|
void m68k_write_memory_8(unsigned int address, unsigned int value);
|
|
void m68k_write_memory_16(unsigned int address, unsigned int value);
|
|
void m68k_write_memory_32(unsigned int address, unsigned int value);
|
|
|
|
void stop_cpu_emulation(uint8_t disasm_cur);
|
|
|
|
#endif /* _EMULATOR_H */
|