Turingcus Computer

From Esolang
Jump to navigation Jump to search

Turingcus Computer is a improved version of Abacus Computer with new features. Also its no longer a OISC with the INT instruction.

Default values

  • R0 = 0
  • R1 = 1
  • RN = -1
  • RS = 0 (Starting value)
  • IP = 0 (default value, increases for every command)

(Insert bulleted list item for the value of "the max")

Additions

A new register was added called RI which is the interrupt register. It is both used and changed using the INT command.
The other new register is MI which points to the memory. It acts like a pointer.
The new command INT works like this:

  • When its ran, it takes RI.
  • If RI is 0, it waits until a key is pressed and overwrites RI with the ASCII number of the key pressed.
  • If RI is 1, it will output the value in RI as ASCII.
  • If RI is 2, it sets RI to the value in that memory adress.
  • If RI is 3, it sets the MI-th byte to the value of RI.