(z80 assembler) Disabling break?

The place for codemasters or beginners to talk about programming any language for the Spectrum.
Post Reply
C#2Speccy
Drutt
Posts: 2
Joined: Sun Jul 12, 2020 10:09 pm

(z80 assembler) Disabling break?

Post by C#2Speccy »

I'm very new to assembly coding having started as a BASIC programmer as a child then progressing to C# as developer but i recall that many assembly written games disabled the break feature. Is this easy to achieve?
I've searched this forum and there are some ideas for BASIC but wondered if there is a standard way to disable it for apps/games written in assembly?
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2641
Joined: Mon Nov 13, 2017 3:16 pm

Re: (z80 assembler) Disabling break?

Post by Ast A. Moore »

Not sure what you’re asking. BASIC is an interpreter running on top of a primitive operating system. Breaking (i.e. stopping a BASIC program) is a feature of the OS. When you write a program in assembly (or any other language that is then converted to machine code), there’s no breaking, unless you specifically program that feature yourself.
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
utz
Microbot
Posts: 116
Joined: Wed Nov 15, 2017 9:04 am
Contact:

Re: (z80 assembler) Disabling break?

Post by utz »

In other words, it's disabled by default in assembly ;)
C#2Speccy
Drutt
Posts: 2
Joined: Sun Jul 12, 2020 10:09 pm

Re: (z80 assembler) Disabling break?

Post by C#2Speccy »

Ah - though t so. just checkin'.

8-)
Post Reply