The following code does not generate any assembler warnings or errors
This produces the following code
B8 FF 00 // MOV AX, 0x00FF
This is incorrect, because the literal cannot be stored in the specified register, so the assembler should throw either a warning or an error.
The following code does not generate any assembler warnings or errors
This produces the following code
This is incorrect, because the literal cannot be stored in the specified register, so the assembler should throw either a warning or an error.