News:

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

Main Menu

Labels do not like equates

Started by jj2007, April 05, 2017, 04:34:13 AM

Previous topic - Next topic

jj2007

include \masm32\include\masm32rt.inc
.code
rc RECT <12, 34, 56, 78>

start: mov esi, offset rc
_label: MyRc equ [esi.RECT]    ; <<<<<<<<<<<<<<<<<<<<<
  print str$(MyRc.left), 9, "left", 13, 10
  print str$(MyRc.top), 9, "top", 13, 10
  print str$(MyRc.right), 9, "right", 13, 10
  print str$(MyRc.bottom), 9, "bottom", 13, 10
  exit
end start


Chokes with ML & HJWasm, only AsmC likes it 8)