Home > User Support > CoverageMaster winAMS FAQ
Question:
I would like to read an address and change its procedure using a macro like in the following example. Is it possible?
if (address & value) == 0 then goto LABEL; //LABEL is a label within the startup command file
Answer:
It is possible. First, define a symbol "temp" as a 1-byte variable at address "100h". Macros also support if + then statements so this will be used. However, since the address (such as 100h) cannot be directly written in the expression of the if command, it is necessary to create and use a symbol indicating the address.
define/address/loc = 1 temp = 100h
if (*temp & 10h) == 0 then goto LABEL //LABEL is a label within the startup command file
Additional info:
A basic guide for using macro commands can be downloaded below.
Other technical tips in GAIO's web site can be searched for using the links below.
Search key word link: Startup command file | Macro
Technical Tips Google Search