== Constants ========================================================
ADD: add the two arguments; treat link as carry
SUB: subtract the two arguments; treat link as carry
-MUL:
-DIV:
-MOD:
REM:
MAX:
MIN:
Flags: zero, negative, overflow, ?
+move elsewhere:
+//MUL:
+//DIV:
+//MOD:
+
== Fleeterpreter ====================================================
public void service() {
if (box_in1.dataReadyForShip() &&
break;
case 1: box_out.addDataFromShip(a-b); // SUB
break;
- case 2: box_out.addDataFromShip(a*b); // MUL
- break;
- case 3: box_out.addDataFromShip(a/b); // DIV
- break;
- case 4: box_out.addDataFromShip(a%b); // REM
- break;
default: box_out.addDataFromShip(0);
break;
}