mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-15 06:05:22 +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);
|
Memory(uint16_t addressMask);
|
||||||
|
|
||||||
// Only fired with read/write methods
|
// Only fired with read/write methods
|
||||||
Signal<AddressEventArgs> WritingByte;
|
Signal<AddressEventArgs> WrittenByte;
|
||||||
Signal<AddressEventArgs> ReadingByte;
|
Signal<AddressEventArgs> ReadingByte;
|
||||||
|
|
||||||
register16_t& ADDRESS() { return m_address; }
|
register16_t& ADDRESS() { return m_address; }
|
||||||
@ -80,10 +80,9 @@ namespace EightBit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void write(uint16_t offset, uint8_t value) {
|
void write(uint16_t offset, uint8_t value) {
|
||||||
AddressEventArgs e(offset, value);
|
|
||||||
WritingByte.fire(e);
|
|
||||||
ADDRESS().word = offset;
|
ADDRESS().word = offset;
|
||||||
reference() = value;
|
reference() = value;
|
||||||
|
WrittenByte.fire(AddressEventArgs(offset, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user