Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Warning Message
◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Warning: A4057
Illegal size for operand
The size of an operand is illegal with the specified instruction.
For instance, you cannot use a shift or rotate instruction with a
doubleword. Since this is a warning rather than an error, the
assembler does assemble code for the instruction, making a
reasonable guess at your intention. For example, if the statement
inc mem32
is given, where mem32 is a doubleword memory operand, the
assembler actually only increments the low-order word of the
operand, since a word is the largest operand that can be
incremented. This error may occur if you try to assemble source
code written for assemblers that have less strict type checking
than the Microsoft QuickAssembler (such as early versions of the
IBM Macro Assembler). Usually, you can solve the problem by
specifying the size of the item with the PTR operator.
-♦-