If it 'must' be under software control, why not use an I/O port? Write only would do.
Leave memory writes to access ehm... memory. How a ZX81 uses memory, is complicated enough as it is imho.
Kolour
- RetroTechie
- Posts: 379
- Joined: Tue Nov 01, 2011 12:16 am
- Location: Hengelo, NL
- Contact:
- 1024MAK
- Posts: 5118
- Joined: Mon Sep 26, 2011 10:56 am
- Location: Looking forward to summer in Somerset, UK...
Re: Kolour
But keep in mind that if you do use the Z80 CPU's I/O addressing, this is also complex due to the very simple decoding used by the ZX81's own circuitry. And BASIC on the ZX81 has no OUT command, so to control anything using an output port, a very small machine code program is needed.
Welcome to the world of Sinclair minimal address decoding
Mark
Welcome to the world of Sinclair minimal address decoding
Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp
Standby alert
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp
Standby alert
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
Re: Kolour
Yes - good point the missing OUT command.
I would propose to use a write to any address above $BFFF - just check if A14 and A15 are high.
This would be compatible with many memory extensions while normally the address area is only written to, but not compatible to M1NOT modifications.
But easy to decode. Well - life is not easy make it ZX81 compatible.
If you use a 74HCT138 you could use A13 and A12, too - given an adress range of $F000-$FFFF which would be rarely used. I would check all adress lines (A15-A12) high).
I would propose to use a write to any address above $BFFF - just check if A14 and A15 are high.
This would be compatible with many memory extensions while normally the address area is only written to, but not compatible to M1NOT modifications.
But easy to decode. Well - life is not easy make it ZX81 compatible.
If you use a 74HCT138 you could use A13 and A12, too - given an adress range of $F000-$FFFF which would be rarely used. I would check all adress lines (A15-A12) high).
- 1024MAK
- Posts: 5118
- Joined: Mon Sep 26, 2011 10:56 am
- Location: Looking forward to summer in Somerset, UK...
Re: Kolour
If you use a 74LS688 or 74HCT688 MAGNITUDE/IDENTITY COMPARATOR you can test for /WR low, /MREQ low plus 7 address lines (say A9 to A15) all in one chip.
Data sheet (PDF) here
Mark
Data sheet (PDF) here
Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp
Standby alert
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp
Standby alert
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
Re: Kolour
Good point. I have some of these here, although they are a bit hard to find in local stores (at least harder than the '138).1024MAK wrote:If you use a 74LS688 or 74HCT688 MAGNITUDE/IDENTITY COMPARATOR you can test for /WR low, /MREQ low plus 7 address lines (say A9 to A15) all in one chip.
Data sheet (PDF) here
Mark
[]s
Daniel