In August last year, I've started a thread
http://masm32.com/board/index.php?topic=487.0 inside the 16 bit DOS Programming, because the frame program was written with PowerBASIC 3.5, which is a native 16 bit compiler. My original plan was to develop the 64 bit version first; for several reasons, I've started the migration from 16 bit code to 32 bit code first.
At the moment, my test program works and brings the right results. I've tested it under Windows XP Mode (Windows XP, SP3 with Virtual Computer). It runs well in compatibility mode under Windows 7 (64 bit), too.
XMM result FPU result Long Accumulator result
========== ========== =======================
Array 1 0.00 136.00 137.00
Array 2 17.00 137.00 137.00
Array 3 120.00 136.00 137.00
Array 4 147.00 139.00 137.00
Array 5 137.00 137.00 137.00
Array 6 -10.00 134.00 137.00
The right result is 137.00 and nothing else!
But I can't test the software under a native 32 bit Windows (XP, Windows 7, whatever Windows). So, I need some help for testing it under such an environment.
To be honest: The software is in the present state far from ideal and under construction. Most of the code (approximately 70%) is simple 16 bit code, running in the Windows FLAT memory model. I've to change that step by step into native 32 bit instructions. This is not so easy, because the parameter passing to some internal helper procedures (for example: deleting or inverting the long accumulator) is made via registers and not via stack. By changing one procedure, there are side effects at others and that gives sometimes trouble.
Anyway, I hope to finish the migration in that program parts til March this year. Furthermore, I've to write an extensive documentation with background information for the used techniques and algorithms.
Gunther