Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2379

8-bit acorn software: other • Re: Joystick Test Program

$
0
0
It's a very odd program in a lot of ways. Pressing SPACE also restores the sound, but the instructions don't say that, and anyway the test for SPACE is skipped if the sound has been turned off, so there is no way to clear the screen without sound.

I've never seen a keypress being tested with INKEY(-) when the keypress has already been obtained using GET. The whole of PROCspeed could be avoided by changing line 160 to

Code:

160A=GET:IFA>48 AND A<58 THEN SP=(A-48)*5
Jumping out of the PROC is very bad as others have said (though it would never happen) but also I don't know why they didn't use a REPEAT...UNTIL0 loop instead of the GOTO at 420.

Statistics: Posted by BeebMaster — Tue Oct 22, 2024 9:17 pm



Viewing all articles
Browse latest Browse all 2379

Trending Articles