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 > Strange code can't be generated

Author
Thread Post new topic Reply to topic
l4m2



Joined: 15 Jan 2015
Posts: 591
Strange code can't be generated

Code:
        org 0
        jmp fun
        if $+1022<=1024
          db 1022 dup 0
        end if
        fun


Maybe it doesn't make so much sense, but can it be fully ignored?
Post 08 Aug 2016, 13:18
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15165
Location: GW170817
This is normal and has been discussed here many times in the past.

It is a consequence of your code output being dependant upon the variable length of "jmp fun". Try changing it to "jmp dword fun".
Post 08 Aug 2016, 13:42
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


Powered by phpBB © 2001-2005 phpBB Group.

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