mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 00:29:47 +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:
parent
8256d97b60
commit
3001a97128
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user