Is this a valid assembly instruction ?
MOV CX,0F9
I mean, as we see there is "0F9" in it, although the source operand looks like "hexadecimal" but there are no "H" symbols used at the end of the instruction (or the end of the source operand).
Is this a valid assembly instruction ?
MOV CX,0F9
I mean, as we see there is "0F9" in it, although the source operand looks like "hexadecimal" but there are no "H" symbols used at the end of the instruction (or the end of the source operand).
yes. it is indeed a valid intel x86 syntax, moving 0xF9 to CX register. By convention, we assume that any immediate value is in its hexadecimal representation. The reason why there's a 0 in front of F9 is to ensure that the assembler treats the value as an immediate value (hex), rather than a label. It is not there to differentiate its base-n representation.