Why so ?
; flat assembler 1.73.32 for Windows
; 64-bit
format PE64 GUI 5.0
entry start
include 'win64a.inc'
section '.text' code readable executable
proc rd_rand
rdrand ax ; OK - no error
rdrand eax ; OK - no error
rdrand rax ; OK - no error
endp
start: call rd_rand
; flat assembler 1.73.33 for Windows
; flat assembler 1.73.34 for Windows
; 64-bit
format PE64 GUI 5.0
entry start
include 'win64a.inc'
section '.text' code readable executable
proc rd_rand
rdrand ax ; ??? - invalid size of operand
rdrand eax ; ??? - invalid size of operand
rdrand rax ; OK - no error
endp
start: call rd_rand
; flat assembler 1.73.32 for Windows
; 32-bit
format PE GUI 4.0
entry start
include 'win32a.inc'
section '.text' code readable executable
proc rd_rand
rdrand ax ; OK - no error
rdrand eax ; OK - no error
rdrand rax ; OK - illegal instruction
endp
start: call rd_rand
; flat assembler 1.73.33 for Windows
; flat assembler 1.73.34 for Windows
; 32-bit
format PE GUI 4.0
entry start
include 'win32a.inc'
section '.text' code readable executable
proc rd_rand
rdrand ax ; ??? - invalid size of operand
rdrand eax ; ??? - invalid size of operand
rdrand rax ; ??? OK - no error
endp
start: call rd_rand