R-20 Simulator
 Alle Dateien Funktionen Variablen Makrodefinitionen
input.h-Dateireferenz

gehe zum Quellcode dieser Datei

Funktionen

void key_pi ()
 Push 3.141592654 ( $ \approx \pi $) on stack.
void key_plus ()
 Called when "+" is pressed.
void key_enter ()
 Called when "enter" is pressed.
void call (int key)
 Call subroutine assigned to pressed key.

Variablen

char reg [REG_NR][NUMBER_SIZE]
 Memory locations for virtual X, Y, Z, T, A, B registers.
char flags
 Holds flags (INFTY, DIV0...).

Dokumentation der Funktionen

void call ( int  key)

Call subroutine assigned to pressed key.

void key_enter ( )

Called when "enter" is pressed.

void key_pi ( )

Push 3.141592654 ( $ \approx \pi $) on stack.

void key_plus ( )

Called when "+" is pressed.


Variablen-Dokumentation

char flags

Holds flags (INFTY, DIV0...).

This is a special "flags" byte: Possible bits so far:

[ 7 6 5 4 3 2 1 0 ] INFTY

char reg[REG_NR][NUMBER_SIZE]

Memory locations for virtual X, Y, Z, T, A, B registers.