flat assembler
Message board for the users of flat assembler.

Index > Main > APX instructions in FASM 1 and/or 2?

Author
Thread Post new topic Reply to topic
ground



Joined: 25 May 2024
Posts: 5
Location: The Netherlands
ground 11 Sep 2026, 23:05
At the end of 2026, the Advanced Performance Extensions, APX, will be in shipped processors by Intel. In 2027 by AMD.

Will FASM 1 get the extensions or only FASM 2?
Post 11 Sep 2026, 23:05
View user's profile Send private message Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 712
Location: Marseille/France
sylware 12 Sep 2026, 11:48
Does this first APX include the upgrade to 32 registers?
Post 12 Sep 2026, 11:48
View user's profile Send private message Reply with quote
ground



Joined: 25 May 2024
Posts: 5
Location: The Netherlands
ground 23 Sep 2026, 09:15
Yes, there are no multiple versions of APX. So, the 32 registers are available in the first release. The normal 1-byte prefix for 64-bit assembly code will get a 2-byte prefix for APX. That will increase the code size, however, the new 3 operand instructions will compact the code.
For instance when you have a value in RCX and you want to bitshift right 4 times the value and put it in R18, you can do in APX:
SHR R18, RCX, 4
It will not touch the RCX register.
Intel has a simulator for APX.


Last edited by ground on 19 Oct 2026, 17:11; edited 1 time in total
Post 23 Sep 2026, 09:15
View user's profile Send private message Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 712
Location: Marseille/France
sylware 23 Sep 2026, 11:09
APX is basically RISC-V/ARM for x86_64.

Funny. Maybe we'll get a RISC-V decoder front-end for AMD and INTEL µarchitectures (probably server/mobile at first)

Yep, maybe the time fasm pre-processor/CALM languages will get a RISC-V port is getting closer?
Post 23 Sep 2026, 11:09
View user's profile Send private message Reply with quote
ground



Joined: 25 May 2024
Posts: 5
Location: The Netherlands
ground 01 Nov 2026, 15:15
As I understand it, the development of FASM 1 is final, so APX will never be in it. FASM 2 is the place, but it does not have it at the moment.
So,
mov r16,0
will result in:
Error: symbol 'r16' is undefined or out of scope.

The topic should be hot. Has everybody gone to NASM?
Post 01 Nov 2026, 15:15
View user's profile Send private message Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 712
Location: Marseille/France
sylware 02 Nov 2026, 12:01
@ground You have to understand fasm is not an assembler per se, but a set of languages to develop assemblers for most binary formats.
Post 02 Nov 2026, 12:01
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 21213
Location: In your JS exploiting you and your system
revolution 02 Nov 2026, 12:24
sylware wrote:
@ground You have to understand fasm is not an assembler per se, but a set of languages to develop assemblers for most binary formats.
I assume that is meant to say fasmg?
Post 02 Nov 2026, 12:24
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8580
Location: Kraków, Poland
Tomasz Grysztar 03 Nov 2026, 11:40
ground wrote:
Will FASM 1 get the extensions or only FASM 2?
I do not want to promise too much. I've been planning to get back to video streaming, and do a REX2 implementation live, but I simply could not find a good opportunity this year, especially since I didn't expect much attention.

And, considering that adding instructions into fasm2 is relatively easy, someone might beat me to it. Wink
Post 03 Nov 2026, 11:40
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


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.