Author Topic: Labels do not like equates  (Read 229 times)

jj2007

  • Member
  • *****
  • Posts: 7551
  • Assembler is fun ;-)
    • MasmBasic
Labels do not like equates
« on: April 05, 2017, 04:34:13 AM »
Code: [Select]
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)