Last active
August 28, 2018 04:23
-
-
Save nothings/e0319993bbf3e5be6943eeca9d00e613 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instruction = cccccccc t xx r bb i aaa | |
8-bit registers A,B,C,T | |
8-bit program counter X | |
input I | |
output O | |
1-bit register F | |
; constant | |
C <- -128..127 | |
; temp | |
T <- A | |
T <- T | |
; program counter | |
X <- C | |
X <- X+1 | |
X <- F ? C : X+1 | |
X <- A | |
; 2nd operand | |
B <- A | |
B <- B | |
B <- C | |
B <- I | |
; IO output | |
O <- A | |
O <- | |
; accumulator | |
A <- A | |
A <- B | |
A <- T | |
A <- -A | |
A <- A+B | |
A <- F ? B : A | |
A <- A, F <- A<B | |
A <- A, F <- A==B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment