Zaks book error ?

General Chit Chat about Sinclair Computers and their Clones
Rishi
Posts: 107
Joined: Mon Jun 08, 2015 6:57 pm
Location: Amsterdam

Zaks book error ?

Post by Rishi »

when i recovered our ZX81 i also looked for the book i bought (on special order) Programming the Z80 by Rodnay Zaks, but i didn't manage to find it back, fortunately it was available online as PDF (also 2nd hand for about $50 + postage and handling, but that was a bit to much, i can buy a Kindle for that :D ) anyway just now i was looking through it and i should read it again front to back thoroughly, but i was browsing and i noticed on page 95, an Error ? shouldn't the 2nd line of the program read
"LD HL,ADDR2" ? you know it's for my own understanding, if i see these things i know i on the right track, but could someone else have a quick look and confirm this ?
thx up front !!
32K SRAM WRX compatible, 32Bit IO-Port, ROM Ghost, ZX-Printer.
User avatar
PokeMon
Posts: 2264
Joined: Sat Sep 17, 2011 6:48 pm

Re: Zaks book error ?

Post by PokeMon »

Yes - this should be a bug. 8-)
IanB
Posts: 60
Joined: Mon Jul 27, 2015 5:40 am
Location: Northampton UK

Re: Zaks book error ?

Post by IanB »

No, it should actually read

LD HL, ADR2

;)
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Zaks book error ?

Post by 1024MAK »

From the "third revised edition 1982":
image.jpg
(127.46 KiB) Downloaded 325 times
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.
Rishi
Posts: 107
Joined: Mon Jun 08, 2015 6:57 pm
Location: Amsterdam

Re: Zaks book error ?

Post by Rishi »

Thanx again, that is clear it is as i thought it was and i do not need to revise my way of thinking...
32K SRAM WRX compatible, 32Bit IO-Port, ROM Ghost, ZX-Printer.
Rishi
Posts: 107
Joined: Mon Jun 08, 2015 6:57 pm
Location: Amsterdam

Re: Zaks book error ?

Post by Rishi »

ehm Mark do you have a clear copy of page 170 as well, the PDF is just to grainy.
32K SRAM WRX compatible, 32Bit IO-Port, ROM Ghost, ZX-Printer.
User avatar
PokeMon
Posts: 2264
Joined: Sat Sep 17, 2011 6:48 pm

Re: Zaks book error ?

Post by PokeMon »

You may try this one:
http://www.z80.info/zip/programming_the ... dition.pdf

This file is OCRed as well - you may search for suitable keywords. 8-)
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Zaks book error ?

Post by 1024MAK »

Rishi wrote:ehm Mark do you have a clear copy of page 170 as well, the PDF is just to grainy.
Erm, do you mean page 171 with figure 4.10: Rotates and Shifts?

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.
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Zaks book error ?

Post by 1024MAK »

image.jpg
Page 170
(199.67 KiB) Downloaded 265 times
image.jpg
Page 171
(692.93 KiB) Downloaded 265 times
image.jpg
Page 171, Figure 4.10: Rotates and Shifts
(786.26 KiB) Downloaded 265 times
Trying to take a good picture while holding the book open with one hand and holding an iPad (used to take the photo) in the other without the picture coming out blurred is not easy :x. Not helped by the figures in the book having small details in the first place...

If these are no good, I will try outside in the sunshine with a proper camera (that has a macro mode) later.

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.
Rishi
Posts: 107
Joined: Mon Jun 08, 2015 6:57 pm
Location: Amsterdam

Re: Zaks book error ?

Post by Rishi »

No these will do, i usually use my scanner :D I was making a binary to BCD converter, but got confused by the meaning of of the 'c' in rlc thought it meant carry, but as it turns out means circular, anyway thx, i got it to go already using the debugging functions of the assembler, found where the error was it had to be rl instead of rlc.
32K SRAM WRX compatible, 32Bit IO-Port, ROM Ghost, ZX-Printer.
Post Reply