flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [solved] rip-relative overflow must be recoverable

Author
Thread Post new topic Reply to topic
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc
Here's an example for the problem:
Code:
use64
org $100000000-(endofmov-startofmov)
startofmov:
mov al,[$80000000]
endofmov:    

The unrecoverable error prevents fasm from doing the second pass and this way understanding that $80000000 is still in range. A similar bug has already been fixed before.

_________________
Faith is a superposition of knowledge and fallacy
Post 30 Jan 2016, 01:16
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
revolution
Indeed. This compiles:
Code:
use64
org 1 shl 32 - 6
mov al,[1 shl 31]    
And I can't see any reason why it wouldn't be resolved using the normal rules.
Post 30 Jan 2016, 04:10
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
Please check if I got it right in 1.71.50.
Post 30 Jan 2016, 11:31
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
revolution
OMG, fasm's first ever internal usage of @@ Shocked
Post 30 Jan 2016, 14:37
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7718
Location: Kraków, Poland
Tomasz Grysztar
That might have been a bit of laziness from my side. Wink
Post 30 Jan 2016, 15:03
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
revolution
One of the main tenets of computer programming is the notion that naming things is hard. Razz
Post 30 Jan 2016, 15:12
View user's profile Send private message Visit poster's website Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc
Tomasz Grysztar
Seems like working flawlessly now. Thank you.

_________________
Faith is a superposition of knowledge and fallacy
Post 30 Jan 2016, 16:26
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-2020, Tomasz Grysztar.

Powered by rwasa.