clownmdemu icon indicating copy to clipboard operation
clownmdemu copied to clipboard

Attempted to read invalid Z80 address

Open kentosama opened this issue 2 years ago • 1 comments

Hi, I have a problem when I launch any game from SGDK or sample assembly :

ERROR: Attempted to read invalid Z80 address 0x55EA
ERROR: Attempted to read invalid Z80 address 0x55EB
ERROR: Attempted to read invalid Z80 address 0x55EC
ERROR: Attempted to read invalid Z80 address 0x55ED
ERROR: Attempted to read invalid Z80 address 0x55EE
ERROR: Attempted to read invalid Z80 address 0x55EF
ERROR: Attempted to read invalid Z80 address 0x55F0
ERROR: Attempted to read invalid Z80 address 0x55F1
ERROR: Attempted to read invalid Z80 address 0x55F2
ERROR: Attempted to read invalid Z80 address 0x55F3
ERROR: Attempted to read invalid Z80 address 0x55F4
ERROR: Attempted to read invalid Z80 address 0x55F5
ERROR: Attempted to read invalid Z80 address 0x55F6
ERROR: Attempted to read invalid Z80 address 0x55F7
ERROR: Attempted to read invalid Z80 address 0x55F8
ERROR: Attempted to read invalid Z80 address 0x55F9

The problem occurs when restarting the Z80:

move.w $000,($A11200)

I hope you can fix this issue.

kentosama avatar Jun 10 '23 20:06 kentosama

A bit late but uhh, have you made sure that the Z80 code is safe to reset? It's not uncommon to repurpose the first few bytes of Z80 RAM for variables

RealMalachi avatar Mar 18 '25 16:03 RealMalachi