INJUQ
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
INJUQ (INcrement and JUmp if eQual) is an OISC By User:ChuckEsoteric08.
Specification
It has memory-mapped commands, with them being at the start of a memory and everything else being 0.
a b c d
Increment memory address a
by memory address b
, storing result in a
and if result is equal to memory address c
goto memory address d
. If you jump to address -1 halt
I/O (optional)
If b
is -1
then ask for user input.
If b
is -2
then output memory address.
I/O could be character-based and integer-based
Examples
Print "HI"
Works for character-based I/O
-3 -3 -3 8 72 73 0 0 4 -2 4 12 5 -2 4 -1
Adder
Works for integer-based I/O. Inputs two numbers and outputs their sum:
16 -1 16 4 17 -1 17 8 16 16 17 12 16 -2 17 -1 0 0 0 0
Truth-machine
Works for integer-based I/O
12 -1 1 8 12 -2 12 -1 12 -1 1 8 0 0 0 0