News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Hydrograph... in assembly?

Started by HSE, March 07, 2020, 10:35:36 AM

Previous topic - Next topic

HSE

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:

  • BASIC instructions
  • write??? --> to file
  • p???  ---> print to console
  • array of variables
  • array of structures
  • procedures that work like functions under SmplMath

Source is assembled with "AsmC -Znk"
Equations in Assembly: SmplMath

Biterider

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

HSE

#2
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. 
Equations in Assembly: SmplMath

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding