mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-08-31 07:27:27 +00:00
Don't bother wiring up memory events that the 6502 doesn't need (I think!)
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -43,9 +43,7 @@ namespace EightBit {
|
|||||||
Memory(uint16_t addressMask);
|
Memory(uint16_t addressMask);
|
||||||
|
|
||||||
// Only fired with read/write methods
|
// Only fired with read/write methods
|
||||||
Signal<AddressEventArgs> WritingByte;
|
|
||||||
Signal<AddressEventArgs> WrittenByte;
|
Signal<AddressEventArgs> WrittenByte;
|
||||||
Signal<AddressEventArgs> ReadingByte;
|
|
||||||
Signal<AddressEventArgs> ReadByte;
|
Signal<AddressEventArgs> ReadByte;
|
||||||
|
|
||||||
register16_t& ADDRESS() { return m_address; }
|
register16_t& ADDRESS() { return m_address; }
|
||||||
@@ -76,8 +74,6 @@ namespace EightBit {
|
|||||||
|
|
||||||
uint8_t read() {
|
uint8_t read() {
|
||||||
auto content = reference();
|
auto content = reference();
|
||||||
ReadingByte.fire(AddressEventArgs(ADDRESS().word, content));
|
|
||||||
content = reference();
|
|
||||||
ReadByte.fire(AddressEventArgs(ADDRESS().word, content));
|
ReadByte.fire(AddressEventArgs(ADDRESS().word, content));
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
@@ -88,7 +84,6 @@ namespace EightBit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void write(uint8_t value) {
|
void write(uint8_t value) {
|
||||||
WritingByte.fire(AddressEventArgs(ADDRESS().word, value));
|
|
||||||
reference() = value;
|
reference() = value;
|
||||||
WrittenByte.fire(AddressEventArgs(ADDRESS().word, value));
|
WrittenByte.fire(AddressEventArgs(ADDRESS().word, value));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user