flat assembler
Message board for the users of flat assembler.
![]() |
What should be FASM's mnemonics for Branch Likely Taken and Branch Unlikely Taken? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Total Votes : 15 |
Author |
|
rugxulo
Okay, let's get a feel for what people would prefer to use (although, obviously, the implementation is fully at Privalov's discretion).
|
|||
![]() |
|
Tomasz Grysztar
I'd prefer to stick with CS and DS (unless Intel/AMD come up with some standard), taking into consideration that other segment prefixes may also have some applications (see http://board.flatassembler.net/topic.php?p=39873#39873).
|
|||
![]() |
|
LocoDelAssembly
I agree with Tomasz, specially because you can always use EQU to add the mnemonics.
AMD has this feature? which cores? |
|||
![]() |
|
Tomasz Grysztar
According to Agner Fog's research, it's an undocumented feature of Pentium 4. Some testing would be needed on newer AMD processors to see if they made it, too.
|
|||
![]() |
|
LocoDelAssembly
If you have some code that demostrates the existence of the feature post it and I'll test it for you. I have a Venice core
Regards |
|||
![]() |
|
LocoDelAssembly
Code: irps instr, ja jae jb jbe jc jcxz jecxz je jg jge jl jle jna jnae jnb jnbe jnc jne jng jnge jnl jnle jno jnp jns jnz jo jp jpe jpo js jz { macro l#instr offset\{ds instr offset\} macro u#instr offset\{cs instr offset\} ; Agner Fog's discovery macro a#instr offset\{fs instr offset\} } Nice idea MazeGen, I still think that Tomasz is right in wait for a standard. However you can use macros in the mean time ![]() Regards [edit]match directive removed and added Agner Fog's discovery[/edit] Last edited by LocoDelAssembly on 13 Jun 2006, 13:13; edited 1 time in total |
|||
![]() |
|
Tomasz Grysztar
The "match" is redundant in your macro.
![]() |
|||
![]() |
|
LocoDelAssembly
Corrected, I used match because without it the source didn't pass the preprossessing stage, however I had not this problem again :S I don't know which was the first problem but anyway, it works fine know
![]() Regards |
|||
![]() |
|
Reverend
This feature is documented
Intel manual "Volume 2A: Instruction Set Reference A-M" has a sub-chapter "Instruction prefixes" and there are mentioned the branch hints prefixes. EDIT: Ah, I misunderstood Tomasz's post ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.