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 30 Jan 2016, 01:16
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: 20445
Location: In your JS exploiting you and your system
revolution 30 Jan 2016, 04:10
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



Joined: 16 Jun 2003
Posts: 8358
Location: Kraków, Poland
Tomasz Grysztar 30 Jan 2016, 11:31
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: 20445
Location: In your JS exploiting you and your system
revolution 30 Jan 2016, 14:37
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



Joined: 16 Jun 2003
Posts: 8358
Location: Kraków, Poland
Tomasz Grysztar 30 Jan 2016, 15:03
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: 20445
Location: In your JS exploiting you and your system
revolution 30 Jan 2016, 15:12
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 30 Jan 2016, 16:26
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.