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

Post Reply
Balrockus
Posts: 1
Joined: Wed Apr 12, 2017 1:26 pm

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

Post by Balrockus » Wed Apr 12, 2017 1:48 pm

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 432 times

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

RWAP
Site Admin
Posts: 1231
Joined: Thu May 08, 2008 7:42 am
Location: Stoke-on-Trent, UK
Contact:

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

Post by RWAP » Wed Apr 12, 2017 2:49 pm

(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

RWAP
Site Admin
Posts: 1231
Joined: Thu May 08, 2008 7:42 am
Location: Stoke-on-Trent, UK
Contact:

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

Post by RWAP » Wed Apr 12, 2017 3:02 pm

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

User avatar
XavSnap
Posts: 461
Joined: Sat May 10, 2008 3:23 pm

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

Post by XavSnap » Wed Apr 12, 2017 3:22 pm

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...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest