Skip to content
/ tehProc Public

Simulator of the ultra basic, minimum instruction set, but hopefuly Turing-complete, processor

Notifications You must be signed in to change notification settings

tehftw/tehProc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

tehProc

Simulator of the ultra basic, minimum instruction set, but hopefuly Turing-complete, processor

tehProc is currently in v2, and lacks any represantion of the actual memory of the processor

Current registers, both are 1-bit(True-False, or 1-0): A, B.

Memory: M. It's a stream of 1-bit values.

P - Memory Pointer, it keeps track of where in memory the processor is(used for instructions)

   List of ASM commands as of v2 of tehProc:

0) : Do nothing

1) : Move forward in memory

MemoryPointer = MemoryPointer + 1

2) : Move backwards in memory

MemoryPointer = MemoryPointer - 1

3)/ : 2-NAND operation: takes two inputs, and gives the NAND of them

regA = NAND(regA, regB)

4) : write into memory. Writes the bit that's shown by the MemoryPointer into register A

(MemoryPointer) = regA

5) : read from memory

regA = (MemoryPointer)

6) : moves the register A into register B

regB = regA

7) : moves the register A into register B while erasing register A

regA = 0

About

Simulator of the ultra basic, minimum instruction set, but hopefuly Turing-complete, processor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published