flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > clflush doesn't accept a byte operand?

Author
Thread Post new topic Reply to topic
Randall Hyde



Joined: 03 Dec 2003
Posts: 57
Randall Hyde 04 Mar 2004, 23:40
Consider the following code fragment:

Code:
; Assembly code emitted by HLA compiler
; Version 1.62 build 8707 (prototype)
; HLA compiler written by Randall Hyde
; FASM compatible output

             format  MS COFF


offset32     equ      
ptr        equ      


; Code begins here:



_HLAMain       :


            clflush byte ptr [L3_b__hla_+0] ;/* b */
            
    


FASM reports the following on the clflush instruction:

Code:
flat assembler  version 1.51
sse.asm [64]:
                clflush byte ptr [L3_b__hla_+0] ;/* b */
error: invalid size of operand.
Error returned by Assembler = 2

** error 2 ** deleting sse.exe
    


What am I doing wrong? Doc says the operand should be a byte operand.
Cheers,
Randy Hyde
Post 04 Mar 2004, 23:40
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 04 Mar 2004, 23:45
Perhaps it need to be fixed - currently only operand without any size cast (absolute value or pure label) is accepted.
Post 04 Mar 2004, 23:45
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.