Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nkottary/subleq-machine
Assembly language for a subleq machine
https://github.com/nkottary/subleq-machine
Last synced: 27 days ago
JSON representation
Assembly language for a subleq machine
- Host: GitHub
- URL: https://github.com/nkottary/subleq-machine
- Owner: nkottary
- Created: 2015-05-01T08:27:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-01T08:30:17.000Z (over 9 years ago)
- Last Synced: 2024-10-03T05:09:44.710Z (about 1 month ago)
- Language: Python
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Assembly language for subleq machine.
Subleq machine is a one instruction set computer (OISC). The instruction subleq works as follows.
```
subleq A B C :- mem[B] = mem[B] - mem[A]
if mem[B] <= 0:
program_counter = C
```## Special instructions
1. If B is -1 then mem[A] is printed as a character and program counter is set to C.
2. if program_counter is -1 then execution stops.