News:

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

What is the syntax for reg == address of a variable

Started by dsouza123, October 06, 2005, 11:29:29 PM

Previous topic - Next topic

dsouza123

What is the syntax for comparing a register (holding an address) with the address of a variable ?


.data
 stuff  dd  0,1,2,3
 after  dd  4,5,6,7

.code
 mov esi, offset after

 .repeat
    dec esi
 .until esi == address of stuff

QvasiModo


.data
  stuff  dd  0,1,2,3
  after  dd  4,5,6,7

.code
  mov esi, offset after

  .repeat
     dec esi
  .until esi == offset stuff


:U