MACRO question - for use in MASM
From: Eric (notValid_at_comcast.net)
Date: 06/25/04
- Previous message: f0dder: "Re: DOOM! (Re: HLA v1.66 is now available)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Jun 2004 03:44:51 GMT
suppose i have a MASM 6.11 macro like this:
FOR HNum, <0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,\
13, 14, 15, 16, 17, 18, 19>
SetIntGateDesc <cs:Int_&HNum&_Handler>, &HNum
%echo &HNum
ENDM
The above works fine.
Now if i replace the FOR loop with WHILE:
BuildTable MACRO
X = 0
WHILE X LE 19
SetIntGateDesc <cs:Int_&X&_Handler>, &X
%echo &X
X = X + 1
ENDM
ENDM
Why doesnt (or how do i make it work) the WHILE loop version work?
%echo &X just prints &X instead of the numbers 0 to 19
and if i try another way:
%echo X just prints X instead of the numbers 0 to 19
Thanks
Eric
- Previous message: f0dder: "Re: DOOM! (Re: HLA v1.66 is now available)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]