asm_dip/toolchain/fasmg.kl0e/examples/x86/include/ext/rdrand.inc
2024-11-24 23:13:28 -05:00

11 lines
207 B
PHP

macro rdrand? dest*
x86.parse_operand@dest dest
if @dest.type = 'reg'
x86.select_operand_prefix@dest @dest.size
x86.store_instruction@dest <0Fh,0C7h>,6
else
err 'invalid operand'
end if
end macro