flat assembler
Message board for the users of flat assembler.
Index
> Main > APX instructions in FASM 1 and/or 2? |
| Author |
|
|
sylware 12 Sep 2026, 11:48
Does this first APX include the upgrade to 32 registers?
|
|||
|
|
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 |
|||
|
|
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? |
|||
|
|
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? |
|||
|
|
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.
|
|||
|
|
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. |
|||
|
|
Tomasz Grysztar 03 Nov 2026, 11:40
ground wrote: Will FASM 1 get the extensions or only FASM 2? And, considering that adding instructions into fasm2 is relatively easy, someone might beat me to it. |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.