Close

New firmware R3.15 with ELSE statement

A project log for LM80C Color Computer

A Z80 homebrew computer with 64KB SRAM & 32KB ROM (with BASIC), TMS9918A VDP (video) and AY-3-8910 PSG (audio)

leonardo-milianiLeonardo Miliani 11/21/2020 at 17:320 Comments

Another firmware upgrade, the new R3.15 release introduces a simple yet important feature, the ELSE statement. So, now it is possible to write conditional branches on just 1 single row instead of having to divide them over multiple lines.

Let's consider the code below:

10 IF A<10 THEN PRINT "TOO LESS":GOTO 30
20 PRINT "THAT'OK
30 ... more code ... 

It can now be put on a single line:

10 IF A<10 THEN PRINT "TOO LESS":ELSE PRINT "THAT'S OK"

Apart this, there is also a new man text displayed at boot, to inform the user about the firmware release, the copyright notices and the bytes free.

The new firmware can be grabbed from the official LM80C Github repo.

Discussions