|
@@ -463,6 +463,21 @@ class CodeBox {
|
|
this.pointer.X = this.stacks[this.curr_stack].Pop();
|
|
this.pointer.X = this.stacks[this.curr_stack].Pop();
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ case "C": {
|
|
|
|
+ const currCoords = new Stack([this.pointer.X, this.pointer.Y]);
|
|
|
|
+ this.stacks.splice(this.curr_stack, 0, currCoords);
|
|
|
|
+ this.curr_stack++;
|
|
|
|
+ this.pointer.Y = this.stacks[this.curr_stack].Pop();
|
|
|
|
+ this.pointer.X = this.stacks[this.curr_stack].Pop();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ case "R": {
|
|
|
|
+ const newCoords = this.stacks.splice(this.curr_stack - 1, 1).pop();
|
|
|
|
+ this.curr_stack--;
|
|
|
|
+ this.pointer.Y = newCoords.Pop()
|
|
|
|
+ this.pointer.X = newCoords.Pop();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
// End execution
|
|
// End execution
|
|
case ";":
|
|
case ";":
|
|
output = true;
|
|
output = true;
|