Skip to content

ZX Memory writes - Z80 or ZX implementation? #110

@redbullmarky

Description

@redbullmarky

Hey!
I've not figured out yet whether it's the implementation or the Z80 "chip" but I noticed an issue on my emulator (that's structurally based on the examples provided) that ALSO replicates on your ZX example too.

When you run certain commands from BASIC (my emulator covers the 48 and 128k models), there is an attempt to write to ROM - specifically to address 0.

When having a look at other emulators (including my own, before I swapped out the Z80), this doesn't seem to be the case.

It also appears that it's things that would ordinarily invoke a ULA port write, too.

As far as replication goes:

  1. Put some debug/trapping code around the bit that writes to memory in zx.h
  2. Go into BASIC and try any of these:
BEEP 1,1
BORDER 5

The values don't matter, but the outcome is the same - perhaps 10+ or so attempted writes to address 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions