Page 1 of 1

Think I Need help with a Book/Listing Error?

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

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

Posted: Sun Jan 28, 2018 4:58 pm
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$

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

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

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

Posted: Sun Jan 28, 2018 8:05 pm
by XavSnap
Hi,
Yes, the Djvu format usually insert such problems...
Or it's a bad typewriter operator!
:?