The MASM Forum

General => The Workshop => Topic started by: jj2007 on April 05, 2017, 04:34:13 AM

Title: Labels do not like equates
Post by: jj2007 on April 05, 2017, 04:34:13 AM
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)