80-Bus News |
March–April 1983 · Volume 2 · Issue 2 |
| Page 44 of 55 |
|---|
was going on, and being a self confessed novice at machine code he admitted he didn’t have a clue, and as far as he could see the program didn’t work. What he had done was attach LEDs to the Sinclair I/O connector, which he believed to be some sort of I/O port, and was trying to switch the LEDs by machine code instructions which he took to be the machine code equivalent of POKEs to a given address. As this was his first attempt at machine code programming (I considered it a bit ambitious for a first attempt) he was somewhat disappointed when nothing particular happened.
Anyway, as I have about as much experience with the ZX81 as I have at
piloting a 747 (a real one that is, no I can’t land the natty Sinclair Spectrum
Flight Simulation program either, and that’s supposed to be a light plane
although a couple of experienced pilots who have tried it assure me it’s more
like a 747), this was all Dutch to me [Ed. – apologies to our readers in
Holland!]. It seemed to me somewhat unlikely that the ZX81 I/O connector was
controlled by some sort of latched I/O device, and I guess it is nothing more
than a partially decoded address/
I explained that the BASIC FOR – NEXT loop simply made the processor waste time by counting, and so it is the same in machine code. The only difference is that whereas the BASIC loop may only be counting a hundred or so for a delay of about a minute (see what I mean, brother is the ZX81 slow), at the machine code level, the few hundreds have to be considered as a few millions instead. All he wanted now was a machine code equivalent to the BASIC FOR – NEXT delay loop. So I gave him the very simple counting loop shown in program 2 (adjacent). Now I know it’s simple, but there are many around who still haven’t mastered (or even tried) the machine code end of the business, so I offer it here for all those who have been searching for a delay loop of between about a half second to about two minutes. (That includes the guy who wrote the time delay routine in the PLUTO colour card demo program, it’s awfully complicated to. do such a simple little thing.) I have since heard that the chap now has his LEDs flashing away in machine code and because of this modest success is now only too keen to progress to other things.
That story has very little to do with Nascom is but is at least the sort
of level applicable to an unexpanded Nascom 1. The second story very definitely
concerns the Nascom 1 and one of its shortcomings. Some months ago the shop
supplied a Mr. Rudd Thornton of Largs with a Gemini
GM812
IVC
and a SYS7 to run
it on his CP/M system. Well from that order it was easy to predict the system
the gentleman has, a Nascom 2 with a
Henelec/
| Page 44 of 55 |
|---|