The MASM Forum

Members Gallery => Showcase => Topic started by: HSE on March 07, 2020, 10:35:36 AM

Title: Hydrograph... in assembly?
Post by: HSE on March 07, 2020, 10:35:36 AM
Hi all!

Here is a little piece. The original ,15 years old, is in QBasic.  And now ... well... look like that  :biggrin:

The program implement methods from Part 630 Hidrology of National Engineering Handbook, Natural Resources Conservation Service, USDA. The result is in a text file.

There is abundance of macros:

Source is assembled with "AsmC -Znk"
Title: Re: Hydrograph... in assembly?
Post by: Biterider on March 07, 2020, 07:30:51 PM
Hi HSE
Nice simulation :thumbsup:
You use SmplMath intensively, which is perfect for this project :thup:  It is a pity that it is not used more often.
Biterider
Title: Re: Hydrograph... in assembly?
Post by: HSE on March 08, 2020, 01:48:05 AM
Quote from: Biterider on March 07, 2020, 07:30:51 PM
Nice simulation :thumbsup:
Some kind of nostalgy  :biggrin:

Quote from: Biterider on March 07, 2020, 07:30:51 PMYou use SmplMath intensively, which is perfect for this project :thup:  It is a pity that it is not used more often.
In 32 bit nothing can beat MASM32-SmplMath-ObjAsm32  :eusa_clap:.

To simplify building, here I removed ObjAsm32 debugging system which is my default:start:
    SysInit                                         ;Runtime initialization of the OOP model
    DbgClear
    call main
    inkey
    SysDone                                         ;Runtime finalization of the OOP model
    exit

    I used DbgFPU a lot here  :thumbsup:

Later:
         Just to add, in 32bit SmplMath is 100% optimal. That mean that you can write math source code very easy to read and to improve with cero penalties. In 64bit there is at least a posible penalty, and then perhaps is 99% optimal. 
Title: Re: Hydrograph... in assembly?
Post by: daydreamer on March 10, 2020, 10:14:18 PM
Nice simulation :thumbsup: