SUBSTR Directive Will Not Work if Target Is the Same as Source

ID Number: Q30383

5.10

MS-DOS

buglist5.10 fixlist5.10a

Summary:

The SUBSTR assignment to A in the following program should not be

different than the SUBSTR assignment to B:

.MODEL SMALL

.CODE

A equ <abcdef>

B substr A,4

A substr A,4

END

In this program, the assignment to B is "abcdef". The assignment to

A is "def".

More Information:

Microsoft has confirmed this to be a problem in Microsoft Macro

Assembler (MASM) version 5.1. This problem was corrected in MASM

version 5.1a.

Additional reference words: 5.10 5.10a