flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [bug]Cannot use size override in PUSH/POP after segment reg

Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17716
Location: In your JS exploiting you and your system
revolution
Code:
pop word [0] word [eax] gs [0]         ;<-- Okay
pop word [0] word [eax]    [0] word[0] ;<-- Okay
pop word [0] word [eax] gs [0] word[0] ;Error: invalid size of operand.

push word 3 word ax gs 0 1 2 3 4 5 6        ;<-- Okay
push word 3 word ax    0 1 2 3 4 5 6 word 7 ;<-- Okay
push word 3 word ax gs 0 1 2 3 4 5 6 word 7 ;Error: invalid size of operand.    

The use of a segment register will later preclude the use of size overrides on the same line.

PS: I'm using FASM v1.65.21
Post 26 Apr 2006, 10:44
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
mmmm, with FASM 1.65.17 if I just copy&paste your code I have an error in the 3rd line (like you), but if I leave alone the first line then the following happens:
Code:
pop word [0] word [eax] gs [0]         ;<-- Error: Operand size not specified.
    


The code above is the entire source code.

[edit]Now tested with 1.65.21, same behavior[/edit]

[edit2] I forgot to say that I have the same problem like you if I leave the 3rd line alone. BTW, Why FASM supports multiple params for PUSH/POP? It shouldn't be done with macros?[/edit2]
Post 26 Apr 2006, 13:33
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7802
Location: Kraków, Poland
Tomasz Grysztar
Fixed in 1.65.22.

locodelassembly: this syntax was initially borrowed into fasm's design from TASM, as I was extensively using it there.
Post 26 Apr 2006, 20:02
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.