Skip to content

A small simulator of the ReTI computer discussed in the lecture "operating systems" at the Albert-Ludwigs-Universität, Freiburg.

Notifications You must be signed in to change notification settings

LeonSteinbach/AssemblerSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AssemblerSimulator (ReTI-Interpreter), 2019 by Leon Steinbach

Usage

python interpreter.py <file.txt>

Info

  • The program has 32 bits of memory.
  • Commands are separated by linebreaks.
  • Parameters of commands are separated by one space.
  • Comments can be written in a separat line with a # at the beginning.

Commands

STORE <M>      # Stores the accumulator value in the adress M.
SETACC <d>     # Sets the accumulator value to a digit d.
MOVE <M1> <M2> # Copies the value in adress M1 to adress M2.
ADD <M1> <M2>  # Adds the value of the adress M2 to the value of the adress M1.
SUB <M1> <M2>  # Subtracts the value of the adress M2 from the value of the adress M1.
JUMP <o> <d>   # Compares the accumulator value with the operand o. If true, the programm jumps d lines.
JUMP <d>       # The programm jumps d lines.
PRINT          # Prints the accumulator value.

About

A small simulator of the ReTI computer discussed in the lecture "operating systems" at the Albert-Ludwigs-Universität, Freiburg.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages