Hi, anybody knows if I can define a local label for a macro, how do i do that?
3 replies to this topic
#1
Posted 29 May 2011 - 04:06 PM
|
|
|
#2
Posted 29 May 2011 - 04:36 PM
I don't know about TASM, but with MASM32, there's this 'local' syntax.
For an example, this is my integer() macro:
Once again, this is MASM32 code; I don't know how to use that in TASM.
local label_name ;; Then you use label_name here.
For an example, this is my integer() macro:
integer macro a LOCAL b ;; Defines an integer in memory with the value a and returns its memory address. .data ifnb <a> b dd a else b dd 0 endif .code exitm <offset b> endm
Once again, this is MASM32 code; I don't know how to use that in TASM.
#3
Posted 30 May 2011 - 07:34 AM
#4
Posted 30 May 2011 - 08:56 AM
Thanks guys, it really helped a lot
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









