|
@@ -223,6 +223,18 @@ class CodeBox {
|
|
this.stack.Push(y % x);
|
|
this.stack.Push(y % x);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ case "(": {
|
|
|
|
+ const x = this.stack.Pop();
|
|
|
|
+ const y = this.stack.Pop();
|
|
|
|
+ this.stack.push(y < x ? 1 : 0);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ case ")": {
|
|
|
|
+ const x = this.stack.Pop();
|
|
|
|
+ const y = this.stack.Pop();
|
|
|
|
+ this.stack.push(y > x ? 1 : 0);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
// Movement
|
|
// Movement
|
|
case "^":
|
|
case "^":
|
|
this.MoveUp();
|
|
this.MoveUp();
|