-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem_controller_cpld.cpp
35 lines (27 loc) · 1.1 KB
/
system_controller_cpld.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "system_controller_cpld.h"
SystemControllerCPLD::SystemControllerCPLD(char* rom_path) {
this->_BaseRAM = new RAMDevice(0x0000, 0x7FF0);
this->_BootROM = new ROMDevice(rom_path, 0x8000, 0x8000);
this->_XR88C681 = new XR88C681(0x7FF0);
this->_FrameBuffer = new FrameBufferDevice(0xF00000);
this->_InstallDevice(this->_BaseRAM);
this->_InstallDevice(this->_BootROM);
this->_InstallDevice(this->_XR88C681);
this->_InstallDevice(this->_FrameBuffer);
this->_InitOk = true;
}
bool SystemControllerCPLD::_InternalReadByte(word32 address, word32 timestamp, word32 emulFlags, ResponseRange* triggered_range, byte& b) {
//This guy doesn't really have any registers to R/W
return false;
}
bool SystemControllerCPLD::_InternalWriteByte(word32 address, word32 timestamp, ResponseRange* triggered_range, byte b) {
//This guy doesn't really have any registers to R/W
return false;
}
bool SystemControllerCPLD::_SelfRefresh(word32 timestamp) {
//No real internal state to keep up to date
return false;
}
bool SystemControllerCPLD::StartSendFile(char* filename) {
return this->_XR88C681->StartSendFile(filename);
}