LMMS
Loading...
Searching...
No Matches
Ay_Emu.cpp File Reference
#include "Ay_Emu.h"
#include "blargg_endian.h"
#include <string.h>
#include "blargg_source.h"

Classes

struct  Ay_File

Functions

static byte constget_data (Ay_Emu::file_t const &file, byte const *ptr, int min_size)
static blargg_err_t parse_header (byte const *in, long size, Ay_Emu::file_t *out)
static void copy_ay_fields (Ay_Emu::file_t const &file, track_info_t *out, int track)
static Music_Emunew_ay_emu ()
static Music_Emunew_ay_file ()
void ay_cpu_out (Ay_Cpu *cpu, cpu_time_t time, unsigned addr, int data)
int ay_cpu_in (Ay_Cpu *, unsigned addr)

Variables

long const spectrum_clock = 3546900
long const cpc_clock = 2000000
unsigned const ram_start = 0x4000
int const osc_count = Ay_Apu::osc_count + 1
static gme_type_t_ const gme_ay_type_ = { "ZX Spectrum", 0, &new_ay_emu, &new_ay_file, "AY", 1 }
BLARGG_EXPORT gme_type_t const gme_ay_type = &gme_ay_type_

Function Documentation

◆ ay_cpu_in()

int ay_cpu_in ( Ay_Cpu * ,
unsigned addr )

◆ ay_cpu_out()

void ay_cpu_out ( Ay_Cpu * cpu,
cpu_time_t time,
unsigned addr,
int data )

◆ copy_ay_fields()

void copy_ay_fields ( Ay_Emu::file_t const & file,
track_info_t * out,
int track )
static

◆ get_data()

byte const * get_data ( Ay_Emu::file_t const & file,
byte const * ptr,
int min_size )
static

◆ new_ay_emu()

Music_Emu * new_ay_emu ( )
static

◆ new_ay_file()

Music_Emu * new_ay_file ( )
static

◆ parse_header()

blargg_err_t parse_header ( byte const * in,
long size,
Ay_Emu::file_t * out )
static

Variable Documentation

◆ cpc_clock

long const cpc_clock = 2000000

◆ gme_ay_type

BLARGG_EXPORT gme_type_t const gme_ay_type = &gme_ay_type_
extern

◆ gme_ay_type_

gme_type_t_ const gme_ay_type_ = { "ZX Spectrum", 0, &new_ay_emu, &new_ay_file, "AY", 1 }
static

◆ osc_count

int const osc_count = Ay_Apu::osc_count + 1

◆ ram_start

unsigned const ram_start = 0x4000

◆ spectrum_clock

long const spectrum_clock = 3546900