Nach Hause

Neuigkeiten

Kartenverzeichnis

Karten­aus­schnitte

Wandern

Anders Wandern

Kartographie

Themen

• Hochwasser

• Ausstellungen

• The RT-Assembler

• Weltrekorde

• Nationalbibliothek von Schottland

Karten bestellen

Links

Kontakt

Redaktion

Anhang

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 to compute logarithm functions.

The instruction syntax is e. g.

  add a1 10    ; add 10 to variable a1
  sin alpha    ; compute the sine of angle alpha

Download the English Instruction list as PDF
Download Deutsche Befehlsliste as PDF

Language Documentation

Download Language draft in Backus-Naur-Notation (Text)
Download RTA Dokumentation (in german) (PDF)
Download Das RTA-Handbuch: Die Urkraft, die Rechenmaschinen seit 60 Jahren bewegt (Manuscript, in german) ) (PDF)


Code Examples

Hello World
The sieve of Eratosthenes
Squares computation
Computation of e
Computation of pi by means of the formula of Plouffe
Cardanic formula


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:

vpsubrta_bas.txt

Zum Seitenanfang