Skip to content

Commit

Permalink
qlay_memory.c : fix ROM being writable!
Browse files Browse the repository at this point in the history
It should not have been writable!

Signed-off-by: Graeme Gregory <graeme@xora.org.uk>
  • Loading branch information
xXorAa committed Aug 29, 2024
1 parent b3a7e78 commit 32e54b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qlay_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ unsigned int m68k_read_disassembler_32(unsigned int address)

void m68k_write_memory_8(unsigned int address, unsigned int value)
{
if (address < QL_INTERNAL_IO) {
return;
}

if ((address >= QL_INTERNAL_IO) &&
address < (QL_INTERNAL_IO + QL_INTERNAL_IO_SIZE)) {
qlHardwareWrite8(address, value);
Expand Down

0 comments on commit 32e54b7

Please sign in to comment.