ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Classes | Namespaces | Macros
cpc.h File Reference
#include "config.h"
#include "types.h"
#include "prefs.h"
#include "z80.h"
#include "crtc.h"
#include "ppi.h"
#include "fdc.h"
#include "psg.h"
#include "gatearray.h"
#include "memman.h"
#include "keyboard.h"
#include "colours.h"
#include "sound.h"
#include "vdu.h"

Go to the source code of this file.

Classes

class  Cpc
 

Namespaces

 cpcx
 Namespace for all CPC components.
 

Macros

#define mPsg_write
 

Macro Definition Documentation

#define mPsg_write
Value:
{ \
tUBYTE control = mPsg.control() & 0xc0; /* isolate PSG control bits */ \
if (control == 0xc0) { /* latch address? */ \
mPsg.setSelected(mPsg_data); /* select new PSG register */ \
} else if (control == 0x80) { /* write? */ \
if (mPsg.selected() < 16) { /* valid register? */ \
mSound.setAYRegister(mPsg.selected(), mPsg_data); \
} \
} \
}

Referenced by Cpc::z80_out_handler().