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:
Adrian.Conlon 2017-07-08 09:41:07 +01:00
parent 8256d97b60
commit 3001a97128

View File

@ -43,9 +43,7 @@ namespace EightBit {
Memory(uint16_t addressMask);
// Only fired with read/write methods
Signal<AddressEventArgs> WritingByte;
Signal<AddressEventArgs> WrittenByte;
Signal<AddressEventArgs> ReadingByte;
Signal<AddressEventArgs> ReadByte;
register16_t& ADDRESS() { return m_address; }
@ -76,8 +74,6 @@ namespace EightBit {
uint8_t read() {
auto content = reference();
ReadingByte.fire(AddressEventArgs(ADDRESS().word, content));
content = reference();
ReadByte.fire(AddressEventArgs(ADDRESS().word, content));
return content;
}
@ -88,7 +84,6 @@ namespace EightBit {
}
void write(uint8_t value) {
WritingByte.fire(AddressEventArgs(ADDRESS().word, value));
reference() = value;
WrittenByte.fire(AddressEventArgs(ADDRESS().word, value));
}