1 Difficulty level, Cat E (Programming Support)
A number of improvements have been made to the perl assembler (tinyasm.pl) for the TinyCPU. These changes have all been made in perl code in the file tinyasm.pl. Two test assembly programs have been designed, one successful assembly and one to demonstrate the error reporting and warnings.
The improved error handling is a step up from the old compiler, which did not offer much support at all to the programmer. The introduction of an ORG directive is more or less a necessity, and the RETI instruction is needed to support interrupts. The improvements have been made by adding pattern matching to the assembler to match more advanced patterns than in the basic version, as well as a simple system for counting and printing errors and warnings. To support the error and warning summary, there is also a line counting system. Below follows a complete list of the improvements:
The assembler now supports decimal and