|
Assembler: A nearly forgotten art of programming ...
The Reduced Translation Assembler RTA
The Reduced Translation Assembler RTA is a small assembler language. I've written RTA in a map projection project to decribe any math formula (Vimage, in German). But is also possible to compute any other math algorithm in RTA. RTA is a minimalistic ("less is more") Turing-complete programming language. The RT Processor
RTA is an synthetic assembler language. Its machine in not a physiscal processor (how IBM360 or x86). RTA code only runs on an virtual machine - the RT machine or RT processor. To write and debug RT code I've written a stand alone RT Assembler rta.exe program with such a RT processor in its heart. Download stand alone RT Assembler program rta.exe (ca. 2.7 MByte). The File rta.zip contains 3 files: rta.cab, setup.lst and setup.exe. To install the Program execute setup.exe on your Windows PC. Copyright: The stand alone RT Assembler rta.exe is freeware.
The RTA Instruction set
The RTA instruction set very simple and compact structured.
It contains instructions how
add, sub, mul, div
but also
sin, cos, tan
or
cot
to compute trigonometric or
log and The instruction syntax is e. g.
add a1 10 ; add 10 to variable a1
Download the English Instruction list as PDF
Language Documentation
Download Language draft in Backus-Naur-Notation (Text)
Code Examples
Hello World
Background How to make a virtual machine ... The virtual RT machine contains two subroutines, the RT assembler ans the RT processor. The RT assembler translates the RT source code in two internal structures: the code table and the symbol table. The code table contains the instruction code and its 1st, 2nd and 3rd operand symbol address. The symbol table contains the names and the values of all used symbols. The symbol values are double precision float numbers. The RT processor receives the code table and the symbol table and is realizing the coded algorithm. Both, RTA assembler and processor I've written as Visual Basic subroutines. Here the "kernel" code of the RTA implementation. Its length is ca. 2500 lines:
|