Page 1 of 1

Trying to enter a line from a book fails for some reason

Posted: Wed Apr 12, 2017 1:48 pm
by Balrockus
I am reading through the book "Spectrum Machine Language for the Absolute Beginner edited William Tang". I have got to the section where I need to enter a program from the book into my emulator (Spectacular). The program is EZ-Code Machine Language Editor The image (book.png) below is a screenshot from the book of the listing. When I try to enter line 130 into my emulator it just errors with a flashing red square "E" (see screenshot emulator.png below).

I have entered line 130 as one whole line into the emulator and it wraps around. Is the problem the last

Code: Select all

(s$ > "`") 
? I am not sure if I have entered the correct character in quotes.

If this is not a question for this forum, could anyone please recommend where I could get some help with Spectrum Basic and Assembly programming please.

Cheers, Paul

Book.png
Book.png (75.55 KiB) Viewed 498 times

emulator.png
emulator.png (1.8 KiB) Viewed 498 times

Re: Trying to enter a line from a book fails for some reason

Posted: Wed Apr 12, 2017 2:49 pm
by RWAP
(I moved this topic to Spectrum software as I assume you mean using the emulator, Spectaculator).

I suppose this might be a bug in Spectaculator - you need to enter DEF FN using the CAPS SHIFT + SYMBOL SHIFT then SYMBOL SHIFT 1 key combination.

Is that how you did it?

The character in the last set of quotes should be Symbol Shift 7

Re: Trying to enter a line from a book fails for some reason

Posted: Wed Apr 12, 2017 3:02 pm
by RWAP
I just tested the line in Eighty One and it enters correctly without reporting any errors (using Symbol Shift 7 as the character in quotes)

I do not have Spectaculator

Re: Trying to enter a line from a book fails for some reason

Posted: Wed Apr 12, 2017 3:22 pm
by XavSnap
Yes, RWAP point the right error.

Have a look to the "error" cursor ! It point the syntax error after the command or function.

You typed "D" + "E" + "F" + " " + "F" + "N" and not the "DEF FN" function !

The error cursor is located after the "D"... and not after the "DEF FN" function...