DOCERR: [bx].month Example Incorrect in MASM Programmer's GuideLast reviewed: November 3, 1994Article ID: Q38936 |
The information in this article applies to:
SUMMARYThe code fragment in section 7.1.3 on Page 147 of the "Microsoft Macro Assembler Programmer's Guide" causes a warning A4031: "Operand types must match." There is an error in the example. Change the line below
mov ax, [bx].monthto the following:
mov ah, [bx].month MORE INFORMATIONBecause the structure field month is defined as a byte, the assignment to a word register generates the operand-mismatch warning message. The change to a byte register resolves the warning. The following is also acceptable:
mov ax, word ptr [bx].month |
Additional reference words: 5.00 5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |