Page 1 of 2

Zx Breakout Type in Error

Posted: Mon Nov 05, 2018 3:39 am
by Crayon21
so,after hours of typing, I got it to run. the ball sails to the top right and bounces, then I get an integer out of range error in 4020.

the thing is, I checked and double checked, there is nothing in the line about range. maybe I messed up somewhere. the Code is listed in pages 27 through 30 in the ZX Spectrum Games Code Club book by Gary Plowman. Any help would be appreciated. I don't want to have to redo the whole thing in z80 assembler. I would appreciate a prompt response

Re: Zx Breakout Type in Error

Posted: Mon Nov 05, 2018 10:58 am
by 1024MAK
Note that I have not got the program listing in front of me to refer to, so this is general advice.

If a BASIC program tries to position the curser position / print position or the graphics plot position outside the screen area, you may get this error.

After the error, BASIC lets you use direct commands to examine the contents of any of the variables. So use PRINT z where z is any variable you suspect may be causing problems.

Possible reasons for the cause of errors in programs entered from printed listings include (but are not limited to):
  • A line of code that was missed when the program was typed in,
  • A typo in the code,
  • The wrong character used, so for example a 1 in place of an I, or an i, or a missing symbol, e.g. a - (minus) sign left out,
  • A misprint in the published listing,
  • Part of the program listing missed out from the published listing.
Mark

Re: Zx Breakout Type in Error

Posted: Mon Nov 05, 2018 8:17 pm
by Crayon21
probably a typo, because I typed everything exactly as written

Re: Zx Breakout Type in Error

Posted: Thu Nov 08, 2018 3:05 am
by gammaray
Hi. Was there a code listing, picture or link to the document this program was shown?

C

Re: Zx Breakout Type in Error

Posted: Thu Nov 08, 2018 11:38 pm
by Crayon21
gammaray wrote:
Thu Nov 08, 2018 3:05 am
Hi. Was there a code listing, picture or link to the document this program was shown?

https://www.amazon.com/ZX-Spectrum-Game ... B018R4DS22

C

Re: Zx Breakout Type in Error

Posted: Fri Nov 16, 2018 3:39 am
by Crayon21
any luck?

Re: Zx Breakout Type in Error

Posted: Fri Nov 16, 2018 3:45 am
by gammaray
Haven't received book yet from Amazon. :)

Re: Zx Breakout Type in Error

Posted: Mon Feb 04, 2019 10:05 pm
by Crayon21
gammaray wrote:
Fri Nov 16, 2018 3:45 am
Haven't received book yet from Amazon. :)
any luck yet?

Re: Zx Breakout Type in Error

Posted: Tue Feb 05, 2019 2:13 am
by XavSnap
What is a "book" ?
:lol:

We haven't this book, this program and we can't debug your mind...

Re: Zx Breakout Type in Error

Posted: Tue Feb 05, 2019 9:44 pm
by gammaray
Order stalled and I reactivated ...
amazon book games.jpg