News:

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

Latest macro file dated 10th July 2005

Started by hutch--, July 10, 2005, 09:06:13 AM

Previous topic - Next topic

hutch--

The file is a release version but I have yet to finish the documentation for it as there have been a lot of macros added recently.

Greg Lyon's data to string conversions.
Prototyping macros.
Internal type macros for writing other macros.
Extended console print macro.
Key wait macro and key value return macro.
Get and set console title.
Internal text stack macros for pushing and popping text items. Note that this is still experimental.
more ......

To support the input key macros there are two new modules for the MASM32 library and the latest version of MASM32.inc that has the prototypes for them.

Here is one of the test files for the new macros.


; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

    include \masm32\include\masm32rt.inc

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

comment * -----------------------------------------------------
                        Build this  template with
                       "CONSOLE ASSEMBLE AND LINK"
        ----------------------------------------------------- *

    .code

start:
   
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

    call main           ; call the only procedure in the APP
    inkey               ; suspend app and wait for user input
    exit                ; terminate the running process

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

main proc

    LOCAL var   :DWORD

    sregs ebx,esi,edi   ; save this list of registers

  ; -------------------------------------------------
  ; multiline text display with CRLF and TAB support.
  ; -------------------------------------------------
    cprint t,t,"This is a test of saving",n, \
           t,t,"and restoring registers at ",n, \
           t,t,time$()," on ",date$(),n,n

    rregs               ; restore previously saved registers.

    ret

main endp

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

end start

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Mark Jones

"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08