Forcing an NMI or locking the keyboard via poke command

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
Crayon21
Posts: 357
Joined: Sun Nov 04, 2018 2:33 am

Forcing an NMI or locking the keyboard via poke command

Post by Crayon21 »

Anyone know how to do this? I want to force a halt then an NMI if the user tries to breakout using f2 or space or rubout. it's for the eightyone emulator using the zx81. however I don't want it to be found in the listing. any ideas?
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
1024MAK
Posts: 5122
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Forcing an NMI or locking the keyboard via poke command

Post by 1024MAK »

You can't force a NMI. A NMI is a non-maskable interrupt which is a hardware signal. Machine code can jump to the address where the NMI routine is, but it's not quite the same.

Machine code can HALT the processor, just execute the HALT instruction. But this will not do what you want on a ZX81.

I presume you actually want to prevent a user from BREAKing into the program?

Someone came up with a solution, it's in this topic

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: 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.
Post Reply