Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/18/07 19:12
Read: times


 
#147153 - Macro
Responding to: ???'s previous message
Macro is an assembler directive, is the sintax to do a macroinstruction,read metalink documentation.

For example if you use a lot of times one operation that is:
mov a,addr
add a,#3
mov addr,a

you can make a macro, named for example "my_op" and do:

my_op: macro ;here list of parameters
mov a,addr
add a,#3
mov addr,a
endm

The next time you must use thouse instructions you can use the "opcode" my_op instead all instructions.
The assembler copyes all the instructions for you.

List of 11 messages in thread
TopicAuthorDate
Extended opcode            01/01/70 00:00      
   You mean this?            01/01/70 00:00      
      Translating            01/01/70 00:00      
         Updated            01/01/70 00:00      
   Macro            01/01/70 00:00      
      Macro            01/01/70 00:00      
         Macro - widespread, general term.            01/01/70 00:00      
            The idea is            01/01/70 00:00      
      Does it works..?            01/01/70 00:00      
         Check CJNE            01/01/70 00:00      
            Thanks Robert            01/01/70 00:00      

Back to Subject List