Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

REU.h

Go to the documentation of this file.
00001 /*
00002  *  REU.h - 17xx REU emulation
00003  *
00004  *  Frodo (C) 1994-1997 Christian Bauer
00005  */
00006 
00007 #ifndef _REU_H
00008 #define _REU_H
00009 
00010 
00011 class MOS6510;
00012 class Prefs;
00013 
00014 class REU {
00015 public:
00016         REU(MOS6510 *CPU);
00017         ~REU();
00018 
00019         void NewPrefs(Prefs *prefs);
00020         void Reset(void);
00021         uint8 ReadRegister(uint16 adr);
00022         void WriteRegister(uint16 adr, uint8 byte);
00023         void FF00Trigger(void);
00024 
00025 private:
00026         void open_close_reu(int old_size, int new_size);
00027         void execute_dma(void);
00028 
00029         MOS6510 *the_cpu;       // Pointer to 6510
00030 
00031         uint8 *ex_ram;          // REU expansion RAM
00032 
00033         uint32 ram_size;                // Size of expansion RAM
00034         uint32 ram_mask;                // Expansion RAM address bit mask
00035 
00036         uint8 regs[16];         // REU registers
00037 };
00038 
00039 #endif

Generated on Tue Feb 8 04:08:07 2005 for E32frodo by doxygen 1.3.3