(int address, byte b, boolean generateEvent, boolean requireSynchronization)
| 115 | } |
| 116 | |
| 117 | public void write(int address, byte b, boolean generateEvent, boolean requireSynchronization) { |
| 118 | byte[] page = activeWrite.getMemoryPage(address); |
| 119 | if (page == null) { |
| 120 | if (generateEvent) { |
| 121 | callListener(RAMEvent.TYPE.WRITE, address, 0, b, requireSynchronization); |
| 122 | } |
| 123 | } else { |
| 124 | int offset = address & 0x0FF; |
| 125 | byte old = page[offset]; |
| 126 | if (generateEvent) { |
| 127 | page[offset] = callListener(RAMEvent.TYPE.WRITE, address, old, b, requireSynchronization); |
| 128 | } else { |
| 129 | page[offset] = b; |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | public void writeWord(int address, int w, boolean generateEvent, boolean requireSynchronization) { |
| 135 | write(address, (byte) (w & 0x0ff), generateEvent, requireSynchronization); |
no test coverage detected