News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

macro/struct definition problem

Started by korte, January 04, 2008, 06:40:40 PM

Previous topic - Next topic

korte


work:

string_len       equ   -4
string_width   equ   -8
string_height  equ   -12

   mov [esi+string_len],0

work, but ugly.



I would like to write it in this manner.

  mov [esi.STRING.len]


I rehearsed this, but does not work:


STRING textequ <-12+_STRING>

_STRING struct
_len      dd ?
_width  dd ?
_height dd ?
_STRING ends



   mov [esi.STRING._len],0



u


_STRING struct
height dd ?
width_ dd ?
len    dd ?
_STRING ends

STRING textequ <-12 + _STRING>

mov [esi+STRING.len],0 ; plus instead of dot
Please use a smaller graphic in your signature.