Think I Need help with a Book/Listing Error?

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
JJH
Posts: 6
Joined: Sun Jan 28, 2018 4:15 pm

Think I Need help with a Book/Listing Error?

Post by JJH »

Hi

I've stumbled upon a listing in what seems to be a well respected book, that just won't work for me.

I'm using Spectaculator and it is line 150 where I have the pproblem.

The book is Spectrum Machine Language for the Absolute Beginner by Melbourne House/William Tang and can be downloaded at...

http://www.retro8bitcomputers.co.uk/Boo ... teBeginner

I've attached/inlined a copy of the entire listing.
listing.jpg
listing.jpg (122.09 KiB) Viewed 3174 times
There are way smarter people here than myself and I am thankful to anyone that takes a look, even more so, if you can tell me where the error lies, and how to correct it.

Many thanks, JJH
RWAP
Posts: 1348
Joined: Thu May 08, 2008 8:42 am
Location: Stoke-on-Trent, UK
Contact:

Re: Think I Need help with a Book/Listing Error?

Post by RWAP »

The problem looks to be the scan of the book - I guess line 150 should read:

Code: Select all

150 LET S$ = CHR$ ((n1 <= 9) * (n1 + 48) + (n1 > 9) * (55 + n1)) + S$
JJH
Posts: 6
Joined: Sun Jan 28, 2018 4:15 pm

Re: Think I Need help with a Book/Listing Error?

Post by JJH »

That works and it's much more understandable now:)
Looks like the OCR scanning on this one has mistaken () for <> in some places but not all...
Thanks for the rapid response!
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Think I Need help with a Book/Listing Error?

Post by XavSnap »

Hi,
Yes, the Djvu format usually insert such problems...
Or it's a bad typewriter operator!
:?
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Post Reply