TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: DANIEL TROY
from: HUGH NOLAND
date: 1997-09-27 09:09:00
subject: macros

Daniel Troy writes:
DT> i have defined a macro as follows
DT>
DT> locals
DT>
DT> poll macro
DT> @@1:
DT>        in al,dx
DT>        test al,80h
DT>        jnz @@1
DT> endm
DT>
DT> it works fine as long a you have one poll in a procedure when i add 
second to
DT> same procedure it goes error symbol @@1 defiend elsewhere it also works 
fine
DT> with multiple polls as long as they are in separate procedures
 
Your *locals* directive doesn't work with macros.  Try the following:
   poll macro
   local my_label
   my_label:
     in al,dx
     etc.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.