mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 00:29:47 +00:00
Small consistency change in the 8-bit memory model.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
0e7ad4dd01
commit
6db32ae7c5
@ -43,7 +43,7 @@ namespace EightBit {
|
||||
Memory(uint16_t addressMask);
|
||||
|
||||
// Only fired with read/write methods
|
||||
Signal<AddressEventArgs> WritingByte;
|
||||
Signal<AddressEventArgs> WrittenByte;
|
||||
Signal<AddressEventArgs> ReadingByte;
|
||||
|
||||
register16_t& ADDRESS() { return m_address; }
|
||||
@ -80,10 +80,9 @@ namespace EightBit {
|
||||
}
|
||||
|
||||
void write(uint16_t offset, uint8_t value) {
|
||||
AddressEventArgs e(offset, value);
|
||||
WritingByte.fire(e);
|
||||
ADDRESS().word = offset;
|
||||
reference() = value;
|
||||
WrittenByte.fire(AddressEventArgs(offset, value));
|
||||
}
|
||||
|
||||
void clear();
|
||||
|
Loading…
Reference in New Issue
Block a user