#define MIRROR_VERT 1
#define MIRROR_4SCREEN 2
-class MEMORY;
+namespace FAMILYBASIC {
+ class MEMORY;
+}
+namespace FAMILYBASIC {
class PPU : public DEVICE
{
private:
DEVICE *d_cpu;
- MEMORY *d_memory;
+ FAMILYBASIC::MEMORY *d_memory;
scrntype_t palette_pc[64];
uint8_t screen[240][256 + 16]; // 2*8 = side margin
void initialize();
void release();
void reset();
- void write_data8(uint32_t addr, uint32_t data);
- uint32_t read_data8(uint32_t addr);
+ void __FASTCALL write_data8(uint32_t addr, uint32_t data);
+ uint32_t __FASTCALL read_data8(uint32_t addr);
void event_vline(int v, int clock);
bool process_state(FILEIO* state_fio, bool loading);
{
d_cpu = device;
}
- void set_context_memory(MEMORY* device)
+ void set_context_memory(FAMILYBASIC::MEMORY* device)
{
d_memory = device;
}
void set_mirroring(int mirror);
void set_mirroring(uint32_t nt0, uint32_t nt1, uint32_t nt2, uint32_t nt3);
};
+}
#endif