flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Bug when using BTC

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


Joined: 24 Aug 2004
Posts: 20454
Location: In your JS exploiting you and your system
revolution 20 Sep 2005, 09:30
This doesn't compile without error:
Code:
btc eax,6+8 ;<-- error: invalid operand.    
But the following is okay:
Code:
btc eax,14    
Post 20 Sep 2005, 09:30
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 20 Sep 2005, 10:23
???
Works for me.
Post 20 Sep 2005, 10:23
View user's profile Send private message Visit poster's website Reply with quote
tango



Joined: 05 Apr 2004
Posts: 5
Location: Italy
tango 20 Sep 2005, 10:38
Quote:

???
Works for me.


For me too not works (same situation as revolution).. Confused
I use the version of september 12.
Post 20 Sep 2005, 10:38
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 20 Sep 2005, 10:55
Sorry, but I'm not able to reproduce the bug. Please give more details about version and OS, and the minimum source that causes the problems.
Post 20 Sep 2005, 10:55
View user's profile Send private message Visit poster's website Reply with quote
tango



Joined: 05 Apr 2004
Posts: 5
Location: Italy
tango 20 Sep 2005, 11:57
Quote:

Sorry, but I'm not able to reproduce the bug. Please give more details about version and OS, and the minimum source that causes the problems.


Fasm 1.64 (12 sept) - WinXP HE SP2.
I've made some test.....
If i write:

btc [hinstance],ebx
btc eax,16+8
(hinstance is a dword)

this works, without error.

If i add, at the top:

btc ax,bx <-- added
btc ax,16+8 <-- added
btc [hinstance],ebx
btc eax,16+8 <-- ERROR

This give an error at the last line.. (invalid operand) Confused

Writing this 4 lines in different order:

btc [hinstance],ebx
btc eax,16+8
btc ax,bx
btc ax,16+8 <-- ERROR

This give an error at the last line.. (invalid operand) Confused
Maybe there is a bug in X86_64.inc, at the label 'bt_instruction:'..(?)
Post 20 Sep 2005, 11:57
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20454
Location: In your JS exploiting you and your system
revolution 20 Sep 2005, 12:12
Code:
;minimal code
btc eax,6+8 ;Ok
btc eax,6+8 ;Ok
btc eax,6+8 ;Error.    
Post 20 Sep 2005, 12:12
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 20 Sep 2005, 12:26
tango: thanks - this is what I call good bug report. Smile
It's fixed now.
Post 20 Sep 2005, 12:26
View user's profile Send private message Visit poster's website Reply with quote
tango



Joined: 05 Apr 2004
Posts: 5
Location: Italy
tango 20 Sep 2005, 12:38
Tomasz Grysztar wrote:
tango: thanks - this is what I call good bug report. Smile
It's fixed now.


Many thanks! Smile
Post 20 Sep 2005, 12:38
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.