-
Notifications
You must be signed in to change notification settings - Fork 0
Instruction 06 Call
Ian Rash edited this page Jan 27, 2018
·
2 revisions
0x2
0bCCCCRAXWWWWWWWWYZZZZZZZZ
- C = Control Code (Instruction) [4 bits]
- R = Return [1 bit] Should this return instead?
- A = Action [1 bit] Should this instruction manipulate the call stack?
- X = X Sign [1 bit] Determines if X is negative or not
- W = X [8 bits] Number of X spaces to jump
- Y = Y Sign [1 bit] Determines if Y is negative or not
- Z = Y [8 bits] Number of Y spaces to jump
If the Return bit is 0, this instruction will call the piston to a location specified by signed coordinates. If Action is 1, the last location of the piston before the call will be added to the call stack, if Action is 0, nothing happened. If Return is 1, the instruction will instead call back to the top of the call stack. If Action is 1, it will also remove the frame from the call stack.