Freezing Basic
Freezing Basic
i decided to screw around with basic and decided to make a inescapable loop
(i was bored)
10 REM gosub loop
11 plot 12,2
12 draw 14,2
13 if Inkey$="a" then goto 20
20 goto 10
any other ways to do so?
(i was bored)
10 REM gosub loop
11 plot 12,2
12 draw 14,2
13 if Inkey$="a" then goto 20
20 goto 10
any other ways to do so?
0 x
Re: Freezing Basic
I give you Spectropolis, a city that slowly comes to life at night. Watch and wonder as the lights from buildings, cars and stars flicker while the inhabitants go about their business.any other ways to do so?
Code: Select all
5 BORDER 0: PAPER 0: CLS
10 INK 1+(RND*7)
20 PLOT RND*255, RND*175
40 GOTO 10
0 x
Re: Freezing Basic
Code: Select all
10 FOR i= 1 TO 2 STEP 0
20 PRINT i
30 NEXT i
0 x
- 1024MAK
- Manic Miner
- Posts: 533
- Joined: Wed Nov 15, 2017 2:52 pm
- Location: Sunny Somerset in the U.K. in Europe
Re: Freezing Basic
Code: Select all
10 LET HELL=20 : LET bottles=1E8
20 POKE 23692,255
30 PRINT bottles;" green bottles sitting"',"on the wall..."
40 LET bottles=bottles-1
50 GO TO HELL
2 x
Re: Freezing Basic
LOL1024MAK wrote: ↑Wed May 16, 2018 4:52 pmMarkCode: Select all
10 LET HELL=20 : LET bottles=1E8 20 POKE 23692,255 30 PRINT bottles;" green bottles sitting"',"on the wall..." 40 LET bottles=bottles-1 50 GO TO HELL

0 x
- Ast A. Moore
- Dynamite Dan
- Posts: 1224
- Joined: Mon Nov 13, 2017 3:16 pm
Re: Freezing Basic
When I was modding my Toast Rack to improved the video output quality, I needed to create a gray screen in BASIC, which would also access contended memory with with a varying frequency. So just did this and pressed buttons while it ran:
Code: Select all
1 RUN
0 x
Every man should plant a tree, build a house, and write a ZX Spectrum game.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
Re: Freezing Basic
Is it possible to properly freeze BASIC (disable BREAK) without using POKE or any USR?
0 x
- Ast A. Moore
- Dynamite Dan
- Posts: 1224
- Joined: Mon Nov 13, 2017 3:16 pm
Re: Freezing Basic
I don’t think so. Since you can’t disable interrupts (from BASIC), and the ISR at $38 is what checks for keypresses, I don’t see an obvious way of doing that. Well, BEEP (and a few other BASIC commands) do disable interrupts, but making a long BEEP is more of a cheat.
EDIT: Oh, you can’t fool BASIC that easily, either. BEEP doesn’t allow to play super long notes.

0 x
Every man should plant a tree, build a house, and write a ZX Spectrum game.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.