News:

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

Main Menu

Progress ?

Started by hutch--, July 09, 2016, 10:03:11 PM

Previous topic - Next topic

HSE

JJ:
    You are wrigth! EQU is nicer!

rrr:
   You are wright! ASSUME is better!

The only diference I found now is that EQU hide what pointer you are using. In this particular case you have only one instance of one simple structure in a simple code a one time, no matter. But whith more complex programs and structures perhaps is more error prone to use EQU.   

If the pointer is a register, always use assume. Belive me, at some point you forget what register you are using, all of them are the same!   :biggrin:

Just now I am trying to solve a little problem with an array of structures that have others arrays inside. The calculations of first instance work perfect, but the second destroy the first  :icon13:    There is some pointer somewhere...    ::)
Equations in Assembly: SmplMath

jj2007

I am aware of that problem, it hit me occasionally. One needs a bit of discipline with esi edi ebx ;-)