flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Compiler Internals > [solved] rip-relative overflow must be recoverable

Author
Thread Post new topic Reply to topic
l_inc



Joined: 23 Oct 2009
Posts: 867
[solved] rip-relative overflow must be recoverable
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: 14463
Location: Eta Argus
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: 6179
Location: Kraków, Poland
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: 14463
Location: Eta Argus
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: 6179
Location: Kraków, Poland
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: 14463
Location: Eta Argus
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: 867
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.