Close

Code rearrangement

A project log for One kilobyte Tiny BASIC for the 8080 and Z80

BASIC for the 8080 and Z80, fits in 1K of memory, runs BASIC games on a 2K system. Features similar to Palo Alto Tiny BASIC.

willstevenswill.stevens 04/01/2024 at 17:130 Comments

During testing I came across an error where -32768/2 was being interpreted as -(32768/2) rather than (-32768)/2. Since I had hit the 1K limit, some significant work was required to free up enough memory to fix this. The changes were:

These changes made it possible to effectively add a Negation operator and give it highest precedence.

Several bugs were introduced and subsequently fixed during the course of doing this.

Discussions