From 7701dffca402eb4bcfd160accd9cd98c80a2002e Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 13 Feb 2007 15:39:35 +0100 Subject: [PATCH] cleanup on Alu2 --- ships/Alu2.ship | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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; } -- 1.7.10.4