flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > branch taken?

Author
Thread Post new topic Reply to topic
a115433



Joined: 05 Mar 2010
Posts: 144
a115433
does fasm support branch jumps, or i have to DB prefixes myself?
Post 10 Mar 2010, 09:44
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1155
ManOfSteel
What do you mean by "branch jumps"? jmp? jcc? Something else?

And what's this DB prefixing you're talking about?

Code:
cmp eax,10
je equal10
; not equal to 10
jmp exit
[...]
equal10:
[...]
exit:
    
Post 10 Mar 2010, 10:27
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
a115433,

Are you talking about branch hint prefixes? FASM allows use of segment register name as a prefix:
Code:
        cmp [Msg], WM_CREATE
     ds jne .check_wm_destroy; branch taken hint prefix    
Are they useful anywhere besides Intel NetBurst (P4/Xeon)?
Post 10 Mar 2010, 11:51
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. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.