Results 1 to 2 of 2

Thread: Assembly Macros?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396

    Question Assembly Macros?

    Can anyone show me one or two examples of macros in assembly, best if in Masm context.plus some explanations.

    Is macros in masm almost similar to macros in C?

    Thanks.
    I'm a VB6 beginner.

  2. #2
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Code:
     
    INITZ MACRO
              MOV AX, @data
              MOV DS, AX
              MOV ES, AX
              ENDM
    
    FINISH MACRO
              MOV AX, 4C00H
              INT 21H
              ENDM
    Two macros in 80x86 assembly using the MASM syntax.

    Macros in assembler are placed directly into the code like macros in C++ (and I think C too.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width