News:

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

Main Menu

About $Obj() and assemblers

Started by HSE, November 13, 2020, 06:02:02 AM

Previous topic - Next topic

HSE

Hi all!

I have a little problem because UAsm32 lost his way in old macros that work perfectly in ML 6.14.

Using AsmC, there is some problems with $Obj() in HLL comparisons, but is easy to solve:

Code ( Original XMenu.inc) Select
.elseif [xdi].$Obj(XMenuItem).dType == MENU_TYPE_SEPARATOR

Code ( Modificaton for AsmC) Select
@CatStr(<.elseif [xdi].>,$Obj(XMenuItem),<.dType == MENU_TYPE_SEPARATOR>)

Note: apparently XMenu.inc is the only ObjAsm file frequently included in wich $Obj() is used like this.

Regards. HSE
Equations in Assembly: SmplMath

Biterider

Hi HSE
Thank you for clarifying this usage.  :thumbsup:

I stopped using ML a long time ago because it is unable to handle deep macro nesting and the constant crashes (internal error ...) when it comes to larger code.

Biterider

HSE

Quote from: Biterider on November 13, 2020, 06:46:09 AM
I stopped using ML a long time ago because it is unable to handle deep macro nesting and the constant crashes (internal error ...) when it comes to larger code.

ML have restriccions in macro levels, length of lines, etc. very usefull for slow machines with little memory (perhaps around 1985) an never changed that. That could be easy to change if we have the source code. But lack the capacity to build macros inside macros, and don't understand relative paths. To modify that perhaps is not so easy, M$ don't need that.

UASM32 have some "features" with macros. I don't know very much because I only used it in ObjAsm projects very similar to demos previously tested, don't work with my most interesting projects.  Failures in errors reporting become a problem when projects growth.

AsmC is really impressive in many ways. But today I realize that version 2.29 is the last to work well using ObjAsm :biggrin:

Fun never end  :thumbsup:




Equations in Assembly: SmplMath