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 » Sun Jan 28, 2018 4:48 pm

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 531 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
Site Admin
Posts: 1283
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 » Sun Jan 28, 2018 4:58 pm

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 » Sun Jan 28, 2018 5:22 pm

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: 502
Joined: Sat May 10, 2008 4:23 pm

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

Post by XavSnap » Sun Jan 28, 2018 8:05 pm

Hi,
Yes, the Djvu format usually insert such problems...
Or it's a bad typewriter operator!
:?

Post Reply