Arbint subtraction/addition deal with borrow/carry correctly, maybe
[ipdf/code.git] / src / tests / vfpufloat.cpp
index 606ba5e..dae457b 100644 (file)
@@ -6,9 +6,13 @@ using namespace std;
 
 int main(int argc, char ** argv)
 {
-       VFPU::Start();
+       if (argc > 1)
+               VFPU::Start(argv[1]);
+       else
+               VFPU::Start();
        float result = VFPU::Exec(25,10, VFPU::SUB);
-       printf("%f\n", result);
+       Debug("%f\n", result);
        VFPU::Halt();
+
        return 0;
 }

UCC git Repository :: git.ucc.asn.au