On Sat, Apr 19, 2014 at 2:16 PM, Tony Duell <ard at p850ug1.demon.co.uk> wrote:
In the case of the Z8, is this somethign that can
be read out using a
BASIC program running on said device? I built a test board using that
chip many years ago, if I can find it, and if it still works, I can
power it up and give it a simple program.
Z8 BASIC DEBUG doesn't have a PEEK function. They have prefix operators
"@" and "^" that do nearly the same thing, for 8-bit and 16-bit
values
respectively. However, because the Z8 has three address spaces, they
interpret an argument between 0 and 255 as being a register or SFR address,
so I don't think you can get the first 256 bytes of the ROM that way.
I might have known there'd be a catch :-(. The different way of accessing
memory is no problem, but of coruse the fact you can't read the first 256
bytes of ROM is. My guess (without trying it ro R'ing TFM is that the
inderect addresing operator doesn't help
They have indirect addressing of 16-bit quantities using a ^^" prefix
operator, but I'm not sure whether that can get at the first 256 bytes of
ROM or not.
I could try to write a program that pokes some assembly language into
memory to do the ROM dump.
Before you do that, I'd better see if I can find the board, and if it
stil lruns. It is bound to turn up sometime...
-tony