flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > RDRAND

Author
Thread Post new topic Reply to topic
AL-CHEMIST



Joined: 16 Nov 2009
Posts: 4
Location: Russia
AL-CHEMIST 24 Feb 2026, 07:45
Why so ?

Code:
; 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
    

Code:
; 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
    

Code:
; 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
    

Code:
; 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
    
Post 24 Feb 2026, 07:45
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8505
Location: Kraków, Poland
Tomasz Grysztar 24 Feb 2026, 12:16
I messed up the shared operand parser of RDRAND and SENDUIPI. Corrected in 1.73.35.
Post 24 Feb 2026, 12:16
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.