Zx Breakout Type in Error

Post Reply
Crayon21
Posts: 31
Joined: Sun Nov 04, 2018 2:33 am

Zx Breakout Type in Error

Post by Crayon21 » Mon Nov 05, 2018 3:39 am

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

User avatar
1024MAK
Posts: 2162
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Zx Breakout Type in Error

Post by 1024MAK » Mon Nov 05, 2018 10:58 am

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

Crayon21
Posts: 31
Joined: Sun Nov 04, 2018 2:33 am

Re: Zx Breakout Type in Error

Post by Crayon21 » Mon Nov 05, 2018 8:17 pm

probably a typo, because I typed everything exactly as written

User avatar
gammaray
Posts: 543
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: Zx Breakout Type in Error

Post by gammaray » Thu Nov 08, 2018 3:05 am

Hi. Was there a code listing, picture or link to the document this program was shown?

C
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM

Crayon21
Posts: 31
Joined: Sun Nov 04, 2018 2:33 am

Re: Zx Breakout Type in Error

Post by Crayon21 » Thu Nov 08, 2018 11:38 pm

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

Crayon21
Posts: 31
Joined: Sun Nov 04, 2018 2:33 am

Re: Zx Breakout Type in Error

Post by Crayon21 » Fri Nov 16, 2018 3:39 am

any luck?

User avatar
gammaray
Posts: 543
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: Zx Breakout Type in Error

Post by gammaray » Fri Nov 16, 2018 3:45 am

Haven't received book yet from Amazon. :)
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM

Post Reply