this short program crashes the spectrum
Re: this short program crashes the spectrum
POKE 23614,10: STOP 1..0 hold, SS/m/n colors, b/spc toggle
Re: this short program crashes the spectrum
POKE 23614,10: STOP 1..0 hold, SS/m/n colors, b/spc toggle
Re: this short program crashes the spectrum
Spoiler
POKE 23614,10: STOP 1..0 hold, SS/m/n colors, b/spc toggle
Re: this short program crashes the spectrum
Spoiler
Spoiler
POKE 23614,10: STOP 1..0 hold, SS/m/n colors, b/spc toggle
- PeteProdge
- Bugaboo
- Posts: 3588
- Joined: Mon Nov 13, 2017 9:03 am
Re: this short program crashes the spectrum
Say what you like about this program, but it gives you a flawless Spectrum emulator on any physical ZX Spectrum.
Reheated Pixels - a combination of retrogaming, comedy and factual musing, is here!
New video: Nine ZX Spectrum magazine controversies - How Crash, Your Sinclair and Sinclair User managed to offend the world!
New video: Nine ZX Spectrum magazine controversies - How Crash, Your Sinclair and Sinclair User managed to offend the world!
Re: this short program crashes the spectrum
I've been trying to do a bit of -- never mind -- dealing with someone else's machine code. And it made me thought about CLEAR. Like, suppose I only wanted to reserve exactly one byte, could i do like CLEAR 65534PeteProdge wrote: ↑Wed Nov 01, 2023 3:24 pm Say what you like about this program, but it gives you a flawless Spectrum emulator on any physical ZX Spectrum.
JUST SAYING. Arguing with AIs. shut up leaev me alone.
- 1024MAK
- Bugaboo
- Posts: 3123
- Joined: Wed Nov 15, 2017 2:52 pm
- Location: Sunny Somerset in the U.K. in Europe
Re: this short program crashes the spectrum
@AndyC well try it!
Mark
Spoiler
A Spectrum has no trouble setting RAMTOP to a higher than normal value by using CLEAR 65534. It doesn't care where the UDG data is, or even if it's just garbage. Just don't try to redefine the UDG if it's not in a protected RAM area.
Standby alert
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
Re: this short program crashes the spectrum
(As found in my signature) I love the behaviour of a 48k spectrum when CLEAR 23855 is entered.
Wish I'd done it in Dixon's.
Wish I'd done it in Dixon's.
CLEAR 23855
Re: this short program crashes the spectrum
A crash is an unexpected behaviour during the normal course of a program. The BASIC command "NEW" however behaves exactly like it should. So I would argue that it's not a crash in the technical sense.
- ParadigmShifter
- Manic Miner
- Posts: 671
- Joined: Sat Sep 09, 2023 4:55 am
Re: this short program crashes the spectrum
You can also write a basic program that does a CLEAR, pokes some assembler above the clear address and then do a new then save out the data if you want I suppose (although probably better just to save the data and do a full reset lol).
NEW just clears all variables and up to RAMTOP or whatever the end of the BASIC reserved area is (and moves the stack to immediately below the CLEAR address I think).
NEW just clears all variables and up to RAMTOP or whatever the end of the BASIC reserved area is (and moves the stack to immediately below the CLEAR address I think).
Re: this short program crashes the spectrum
My old time favourite is RANDOMIZE USR 5050.
Found exactly how you'd imagine: by a bunch of us kids bashing the keyboard to see what happens.
Re: this short program crashes the spectrum
But couldn't that be part of like USR "U"? Are you telling me that I have to CLEAR space for my UDGs? mind blown
(My first Speccy was a +2 so I don't consider U a real UDG, but.)
Okay, I know the real answer (I think): no sane BASIC program could stretch into the 65000s so you should technically clear that address (so your BASIC can't get up there) but it's just theoretical. 64K should be enough for everybody. (And +2 owners can rejoice in having 16 free bytes up there -- that's mostly why they bought a +2, isn't it?)
Last edited by equinox on Wed Dec 27, 2023 9:30 pm, edited 2 times in total.
Re: this short program crashes the spectrum
Very smart. Hire this man for a 10% reduction in IT support tickets without actually changing what you do, except saying "ACTUALLY" in the voice that women around the world have come to hate.
Re: this short program crashes the spectrum
I use those for high scores that won't be cleared by RUN, or a quick and dirty LDIR routine that only needs 12 bytes.equinox wrote: ↑Wed Dec 27, 2023 8:59 pm Okay, I know the real answer (I think): no sane BASIC program could stretch into the 65000s so you should technically clear that address (so your BASIC can't get up there) but it's just theoretical. 64K should be enough for everybody. (And +2 owners can rejoice in having 16 free bytes up there -- that's mostly why they bought a +2, isn't it?)
Spectribution: Dr. Jim's Sinclair computing pages.
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!