New BASIC programs

129 views
Skip to first unread message

James Harland

unread,
Jan 26, 2026, 12:34:23 PMJan 26
to RC2014-Z80
Hi everyone,

I've kept the name of this thread general, so that I can add to it in future, and not spam lots of separate messages. Maybe others will want to add their programs/adaptations too.

I got a very simple program from the Usborne Computer Spy Games book working. I got it working on a BBC emulator first, but the game was kind of too easy, you could easily see the number moving. With my RC2014 Classic ][ version it is much harder, as you have to wait for the screen to be redrawn. This is becuase I have a fairly time-consuming loop to mimic PRINT TAB / PRINT AT behaviour.

I wonder if anyone knows or can think of a less time-consuming method of imitating this behaviour, though in this case the bug has become a feature!

This program also includes my tried and tested INKEY$ replacement.


Peace,

James


James Harland

unread,
Feb 24, 2026, 11:56:23 AM (4 days ago) Feb 24
to RC2014-Z80
Hello everyone,

I should have called this thread "New programs" as now I have added a machine code routine for the Orton 3C with the I/O module. 

It is a Fibonnaci sequence routine, which I originally wrote for my Soviet 8080 Mikrotrainer, very easy to convert to Z80 and the Orton hardware.

It quicky exceeds the 255 it can display, but it general it is a nice "Blinkenlights" routine.

The assembly and hex listing is on my Github.

I am slowly working through Leventhal's Z80 book and also of late Gaonkar's (1988) more technical Z80 manual, so maybe at some point I will be able to come up with more fun routines for the Orton 3C.

Peace,

James

James Harland

unread,
Feb 26, 2026, 12:08:14 AM (2 days ago) Feb 26
to RC2014-Z80
Hello,

More Orton 3C goodness. The z80.info fast random number generator routine, apparently based on the ZX Spectrum ROM, and then a d6 routine based off of it.

Next stop - using the switches to generate a number in an arbitrary (8 bit) range.

James

James Harland

unread,
Feb 26, 2026, 12:02:05 PM (2 days ago) Feb 26
to RC2014-Z80
I've made the promised arbitrary pseudo-random number generator for the Orton 3C with input-output module. It generates a number between 1 and the number you set on the input switches, so all D&D dice covered, but also more whimsical things like a d47 if you so desire. As the program grew more complex, it was harder to input everything without error, but I have got it running corectly now.
Reply all
Reply to author
Forward
0 new messages