mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-02-08 18:30:32 +00:00
Remove some unused signals.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
63f7216341
commit
10913bf1b8
@ -122,14 +122,12 @@ namespace EightBit {
|
|||||||
|
|
||||||
Bus();
|
Bus();
|
||||||
|
|
||||||
Signal<int> InterruptGenerated;
|
|
||||||
Signal<int> DisplayStatusModeUpdated;
|
Signal<int> DisplayStatusModeUpdated;
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
|
|
||||||
void triggerInterrupt(int cause) {
|
void triggerInterrupt(int cause) {
|
||||||
pokeRegister(IF, peekRegister(IF) | cause);
|
pokeRegister(IF, peekRegister(IF) | cause);
|
||||||
InterruptGenerated.fire(cause);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeRegister(int offset, uint8_t content) {
|
void writeRegister(int offset, uint8_t content) {
|
||||||
|
@ -13,11 +13,8 @@ namespace EightBit {
|
|||||||
m_address.word = 0xffff;
|
m_address.word = 0xffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
Signal<uint16_t> WritingByte;
|
|
||||||
Signal<uint16_t> WrittenByte;
|
Signal<uint16_t> WrittenByte;
|
||||||
|
|
||||||
Signal<uint16_t> ReadingByte;
|
Signal<uint16_t> ReadingByte;
|
||||||
Signal<uint16_t> ReadByte;
|
|
||||||
|
|
||||||
register16_t& ADDRESS() { return m_address; }
|
register16_t& ADDRESS() { return m_address; }
|
||||||
uint8_t& DATA() { return *m_data; }
|
uint8_t& DATA() { return *m_data; }
|
||||||
@ -53,7 +50,6 @@ namespace EightBit {
|
|||||||
uint8_t read() {
|
uint8_t read() {
|
||||||
ReadingByte.fire(ADDRESS().word);
|
ReadingByte.fire(ADDRESS().word);
|
||||||
auto content = reference();
|
auto content = reference();
|
||||||
ReadByte.fire(ADDRESS().word);
|
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +64,6 @@ namespace EightBit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void write(uint8_t value) {
|
void write(uint8_t value) {
|
||||||
WritingByte.fire(ADDRESS().word);
|
|
||||||
reference() = value;
|
reference() = value;
|
||||||
WrittenByte.fire(ADDRESS().word);
|
WrittenByte.fire(ADDRESS().word);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user