This is what it looks like now:


mov edx,[SShs0]
add [edx].SSTRING.top,SIZEOF SSTRING
sub [edx].SSTRING.fre,SIZEOF SSTRING

This would be better:


mov edx,[SShs0];<mov object, [SShs0]??
add [object].SSTRING.top,SIZEOF SSTRING
sub [object].SSTRING.fre,SIZEOF SSTRING

I've searched using 'assume'. 'assume' is used alot, but not the way I'm interested in.
I don't know how to use assume or if what I want to do is even possible.

Thanks.
Posted on 2002-08-03 11:15:18 by ThoughtCriminal
I like to code this way, too:


object TEXTEQU <edx>
...
mov object, [SShs0]
add [object].SSTRING.top, SIZEOF SSTRING
sub [object].SSTRING.fre, SIZEOF SSTRING
Posted on 2002-08-03 11:36:19 by bitRAKE


object TEXTEQU <edx>

I was wondering if that would work, but I was thinking backwards: edx TEXTEQU <object>....

Which would be bad.... really bad.... if it worked....

MadWizard.org came up in my Google searches about ASSUME. Got and example there, and found out I can do this:


assume edx:ptr SSTRING
mov edx,[SShs0]
add [edx].top,SIZEOF SSTRING
sub [edx].fre,SIZEOF SSTRING
assume edx:nothing


Thanks for setting my thinking the right way bitRAKE.
Posted on 2002-08-03 12:00:08 by ThoughtCriminal
I use this syntax:


mov edx,[SShs0]
add [SSTRING PTR [edx]].top,SIZEOF SSTRING
sub [SSTRING PTR [edx]].fre,SIZEOF SSTRING


Using square brackets '[]' instead of curved brackets '()' (apart from being easier to type) allow this syntax to be used with .IF/.ELSEIF/.ELSE./ENDIF blocks.
Posted on 2002-08-22 03:20:04 by huh