I'm trying to conditionally set a certain variable called MemSeg, based on what key a user presses, for my experimental graphics program.
cmp byte al,0x30
cmove word [MemSeg],0xA000
cmp byte al,0x31
cmove word [MemSeg],0xB000
cmp byte al,0x32
cmove word [MemSeg],0xB800
But upon compiling, I get these errors. Why? Isn't the CMOVxx set of commands just like MOV, except for the fact that they are conditional based on the previous CMP statement?
a.asm:106: error: invalid combination of opcode and operands
a.asm:108: error: invalid combination of opcode and operands
a.asm:110: error: invalid combination of opcode and operands