The latest ZXDB database update will be applied today at 1530 BST. The site goes down for around 30 minutes whilst this happens.

An impressive way to crash the Speccy?

The place for codemasters or beginners to talk about programming any language for the Spectrum.
Post Reply
User avatar
R-Tape
Site Admin
Posts: 6436
Joined: Thu Nov 09, 2017 11:46 am

An impressive way to crash the Speccy?

Post by R-Tape »

Does anyone have any suggestions for a short machine code routine that crashes the Speccy in a visually and/or audibly impressive way, and returns it to a NEW state?

(and if yes, can I rip it off in my next game? :mrgreen: )
User avatar
MatGubbins
Dynamite Dan
Posts: 1239
Joined: Mon Nov 13, 2017 11:45 am
Location: Kent, UK

Re: An impressive way to crash the Speccy?

Post by MatGubbins »

Bunging a paper clip on the expansion port usually works a treat!
User avatar
R-Tape
Site Admin
Posts: 6436
Joined: Thu Nov 09, 2017 11:46 am

Re: An impressive way to crash the Speccy?

Post by R-Tape »

MatGubbins wrote: Sun Jul 22, 2018 8:44 pm Bunging a paper clip on the expansion port usually works a treat!
Heh. Another Speccy to add to eBay's 'not tested but working' pile.

The best I can managed so far is a lazy border effect LDing down from the top of memory.

Image

It might have to do, argh, in which case I should have kept it to myself :shock:
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2641
Joined: Mon Nov 13, 2017 3:16 pm

Re: An impressive way to crash the Speccy?

Post by Ast A. Moore »

R-Tape wrote: Sun Jul 22, 2018 8:05 pm Does anyone have any suggestions for a short machine code routine that crashes the Speccy in a visually and/or audibly impressive way, and returns it to a NEW state?

(and if yes, can I rip it off in my next game? :mrgreen: )
Darn it. If I know you collected artsy Speccy crashes, I would have save a few for you. Just a few days ago I was making a fix for a game (don’t even remember which one), and it crashed just the way you want it: a few seconds of loading/saving sounds with the usual border animation followed by some random patterns on the screen and a reset.
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.
User avatar
1024MAK
Bugaboo
Posts: 3125
Joined: Wed Nov 15, 2017 2:52 pm
Location: Sunny Somerset in the U.K. in Europe

Re: An impressive way to crash the Speccy?

Post by 1024MAK »

The first year that I got my hands on a Speccy, when I had got my head around the normal BASIC commands and functions, I started playing with POKE and USR. I tried many combinations in the search for useful or interesting effects. But I did not keep much in the way of notes. And what I did keep, were typed up on said ZX Spectrum and printed on thermal paper. Paper that has not aged well...

Mark
:!: Standby alert :!:
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :dance
Looking forward to summer later in the year.
dfzx
Manic Miner
Posts: 684
Joined: Mon Nov 13, 2017 6:55 pm
Location: New Forest, UK
Contact:

Re: An impressive way to crash the Speccy?

Post by dfzx »

1024MAK wrote: Mon Jul 23, 2018 6:50 am The first year that I got my hands on a Speccy, when I had got my head around the normal BASIC commands and functions, I started playing with POKE and USR. I tried many combinations in the search for useful or interesting effects.
I used to do the same thing. I still have "RANDOMISE USR 2272" committed to memory after all these years. But it doesn't end in a reset so it's not what the OP wants. :|
Derek Fountain, author of the ZX Spectrum C Programmer's Getting Started Guide and various open source games, hardware and other projects, including an IF1 and ZX Microdrive emulator.
User avatar
djnzx48
Manic Miner
Posts: 731
Joined: Wed Dec 06, 2017 2:13 am
Location: New Zealand

Re: An impressive way to crash the Speccy?

Post by djnzx48 »

You might get some interesting effects by messing around with the I and R registers, for example setting I to point to contended memory.

I think Tomahawk also has some screen corruption effects for when you crash.
User avatar
PROSM
Manic Miner
Posts: 476
Joined: Fri Nov 17, 2017 7:18 pm
Location: Sunderland, England
Contact:

Re: An impressive way to crash the Speccy?

Post by PROSM »

djnzx48 wrote: Mon Jul 23, 2018 9:12 am You might get some interesting effects by messing around with the I and R registers, for example setting I to point to contended memory.
The problem is that altering the I register would only crash the 128K machines IIRC, whereas the 16K/48K models continue to work (albeit with the screen snow still).

Changing R would probably only cause real Spectrums to crash, I don't know of any emulator that simulates DRAM leakage. ;)
All software to-date
Working on something, as always.
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2641
Joined: Mon Nov 13, 2017 3:16 pm

Re: An impressive way to crash the Speccy?

Post by Ast A. Moore »

PROSM wrote: Mon Jul 23, 2018 9:33 am The problem is that altering the I register would only crash the 128K machines IIRC, whereas the 16K/48K models continue to work (albeit with the screen snow still).
I did extensive testing some time ago to verify this hypothesis (I documented in on WoS), and I was unable to crash the 128K Speccy no matter how hard I tried. So there’s little substance to this notion.

That is not to say you can’t crash any Spectrum “the regular” way by messing with the interrupt vector register. Quite the opposite. :P
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.
User avatar
spider
Dynamite Dan
Posts: 1103
Joined: Wed May 01, 2019 10:59 am
Location: Derby, UK
Contact:

Re: An impressive way to crash the Speccy?

Post by spider »

Maybe:

Code: Select all

ORG 26000
XOR (HL)
LD DE,16384
LD BC,6912
LDIR
CALL 1335
JP 26000
Change the JP 26000 to JP 0 to reset obviously! I left it at self as it then generates some slightly different patterns, just break/space a few times:

Image

I did try a few other variations on this such as DI and/or doing something like LD A,R as well as playing with the Call address a bit, without a great deal of other effects really. I thought about more detailed border effects but it seemed a bit o.t.t.

:lol: :oops: :D
User avatar
zxbruno
Manic Miner
Posts: 214
Joined: Sun Mar 04, 2018 6:13 am

Re: An impressive way to crash the Speccy?

Post by zxbruno »

Slightly off-topic, but there was a game that simulated a 48K Speccy reset just for fun. No vertical red lines, but it was enough to trick my friends back then.
User avatar
Einar Saukas
Bugaboo
Posts: 3161
Joined: Wed Nov 15, 2017 2:48 pm

Re: An impressive way to crash the Speccy?

Post by Einar Saukas »

zxbruno wrote: Fri Aug 30, 2019 1:57 pm Slightly off-topic, but there was a game that simulated a 48K Speccy reset just for fun. No vertical red lines, but it was enough to trick my friends back then.
Brian Bloodaxe
Post Reply