News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Variation of "print" macro

Started by hutch--, January 16, 2005, 12:26:58 AM

Previous topic - Next topic

hutch--

I have done a simple mod on the existing "print" macro so that it will take a more flexible layout of text and addressing. What I need it to do is retain compatibility with the original so that no code is broken but have the capacity to append byte data in the normal manner.

    print "Quoted Text",13,10



    printx MACRO arg1,varname:VARARG      ;; display zero terminated string
      invoke StdOut,reparg(arg1)
      IFNB <varname>
        invoke StdOut,chr$(varname)
      ENDIF
    ENDM


I have not exhaustively tested the variation but it seems to work OK so far.

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php