From: adam Date: Tue, 13 Feb 2007 14:39:35 +0000 (+0100) Subject: cleanup on Alu2 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=7701dffca402eb4bcfd160accd9cd98c80a2002e;p=fleet.git cleanup on Alu2 --- diff --git a/ships/Alu2.ship b/ships/Alu2.ship index ab4044e..392be46 100644 --- a/ships/Alu2.ship +++ b/ships/Alu2.ship @@ -10,9 +10,6 @@ data out: out == 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: @@ -31,6 +28,11 @@ Carry-save / carry completion stuff. Flags: zero, negative, overflow, ? +move elsewhere: +//MUL: +//DIV: +//MOD: + == Fleeterpreter ==================================================== public void service() { if (box_in1.dataReadyForShip() && @@ -45,12 +47,6 @@ public void service() { 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; }