DOCUMENT:Q49245 04-MAY-2001 [masm] TITLE :DOCERR: Error in Macro Example in MASM 5.1 Update Manual PRODUCT :Microsoft Macro Assembler PROD/VER:MS-DOS:5.1 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Macro Assembler (MASM), version 5.1 ------------------------------------------------------------------------------- SUMMARY ======= The macro example on Page Update-23 in the "Microsoft Macro Assembler 5.1: Updates and Microsoft Editor" has an error in it. The macro in the example is called RestRegs. The current example reads as follows: RestRegs MACRO numloc instr regpushed,"#" . . . ENDM The second line should read as follows: numloc instr regpushed,<#> However, even with this correction made to the example this macro will not work correctly on MASM version 5.1. This example does not work correctly on MASM version 5.1 due to a problem with the SUBSTR directive when assigning a string a substring of itself. Additional query words: 5.10 ====================================================================== Keywords : Technology : kbMASMsearch kbAudDeveloper kbMASM510 Version : MS-DOS:5.1 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.