flat assembler
Message board for the users of flat assembler.

Index > Main > New instructions

Author
Thread Post new topic Reply to topic
Bargest



Joined: 09 Feb 2012
Posts: 79
Location: Russia
Bargest 14 Mar 2012, 13:08
Here (or here) I found "AMD64 Architecture Programmer's Manual Volume 3: General Purpose and System Instructions"
There are several instructions, that are not supported by FASM. For example: BLCMSK, BLCI, BLCIC, BLCFILL, BLSMSK, BLSFILL...
I hope one day they will be included in FASM.Smile[/url]

_________________
jmp $ ; Happy end!
Post 14 Mar 2012, 13:08
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8358
Location: Kraków, Poland
Tomasz Grysztar 14 Mar 2012, 13:21
I consider it to be a "XOP2" extension, so I will implement it alongside the AVX2 instructions. So you should expect it in fasm 1.70.
Post 14 Mar 2012, 13:21
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 14 Mar 2012, 18:36
Do any cpus have such instructions yet? Pardon my hubris, but it seems a bit silly to support instructions for a computer that hasn't even been manufactured, much less sold. Remember how everyone jumped on AMD's SSE5, and then it was dropped/changed incompatibly? Even AVX (shipped 2011) seems ultra new since almost nobody has it yet. Ah well, guess you can't keep bloat^H^H^H^H^H progress down. Smile
Post 14 Mar 2012, 18:36
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 14 Mar 2012, 18:49
Rest assured that I do not hurry needlessly.

As for that SSE5 story, I may even say "Yeah, I saw that coming." Wink
Post 14 Mar 2012, 18:49
View user's profile Send private message Visit poster's website Reply with quote
peter



Joined: 09 May 2006
Posts: 63
peter 16 Mar 2012, 05:46
Rugxulo, there is an emulator that allows you to try AVX2 instructions without having a processor supporting them. YASM already generates the new instructions; it would nice if FASM supported them, too.
Post 16 Mar 2012, 05:46
View user's profile Send private message Visit poster's website Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 557
smiddy 16 Mar 2012, 11:03
peter have you used this emulator? A quick glance it looks like a code inspector more than say a virtual machine. Is that correct?
Post 16 Mar 2012, 11:03
View user's profile Send private message Reply with quote
Alphonso



Joined: 16 Jan 2007
Posts: 295
Alphonso 16 Mar 2012, 14:05
An emulator and code inspector (see were the action is).

Should really do a bit more with detection but anyway, run on C2D cpu 32-bit OS.

Edit: and check syntax. My bad, thanks Tomasz.


Description:
Filesize: 21.07 KB
Viewed: 12328 Time(s)

lzcnt1.png




Last edited by Alphonso on 16 Mar 2012, 14:52; edited 1 time in total
Post 16 Mar 2012, 14:05
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8358
Location: Kraków, Poland
Tomasz Grysztar 16 Mar 2012, 14:22
"db 0f4h,0fh,0bdh,0d0h" is "lzcnt edx,eax", not "lzcnt eax,edx". Try how fasm assembles it.
Post 16 Mar 2012, 14:22
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 16 Mar 2012, 15:14
My CPU supports lzcnt natively. No need for sde. Perhaps a better test would be with a BLC* instruction.
Post 16 Mar 2012, 15:14
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 16 Mar 2012, 15:17
Well, LZCNT was part of SSE4a, so AMD processors have it since long. But now Intel decided to adopt it.
Post 16 Mar 2012, 15:17
View user's profile Send private message Visit poster's website Reply with quote
Alphonso



Joined: 16 Jan 2007
Posts: 295
Alphonso 16 Mar 2012, 16:04
Sigh, how about BZHI then. Sad


Description:
Filesize: 25.67 KB
Viewed: 12284 Time(s)

bzhi.png


Post 16 Mar 2012, 16:04
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.