Author Topic: Hydrograph... in assembly?  (Read 178 times)

HSE

  • Member
  • *****
  • Posts: 1249
  • <AMD>< 7-32>
Hydrograph... in assembly?
« 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:
  • 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"

Biterider

  • Member
  • ***
  • Posts: 459
  • ObjAsm32 + ObjAsm64 = ObjAsm
    • ObjAsm
Re: Hydrograph... in assembly?
« Reply #1 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

HSE

  • Member
  • *****
  • Posts: 1249
  • <AMD>< 7-32>
Re: Hydrograph... in assembly?
« Reply #2 on: March 08, 2020, 01:48:05 AM »
Nice simulation :thumbsup:
Some kind of nostalgy  :biggrin:

You 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:
Code: [Select]
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. 
« Last Edit: March 10, 2020, 12:01:22 AM by HSE »

daydreamer

  • Member
  • *****
  • Posts: 1150
  • I also want a stargate
Re: Hydrograph... in assembly?
« Reply #3 on: March 10, 2020, 10:14:18 PM »
Nice simulation :thumbsup:
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)