EnableASM missing instructions

Bare metal programming in PureBasic, for experienced users
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

EnableASM missing instructions

Post by STARGÅTE »

I miss some ASM (SSE) instructions in combination with EnableASM:

Code: Select all

EnableASM

ProcedureDLL.i V4_Add(*InOut, *In)
	MOV eax, [p.p_InOut]
	MOV edx, [p.p_In]
	MOVUPS xmm0, [eax] ; << Syntax error !!
	MOVUPS xmm1, [edx]
	ADDPS  xmm0, xmm1
	MOVUPS [eax], xmm0
	ProcedureReturn
EndProcedure

DisableASM
It is possible to add this SSE-instructions ?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: EnableASM missing instructions

Post by wilbert »

Just this morning I was thinking about doing the same request :)
It would indeed be nice if support for these instructions could be added.
Another issue is labels. When you define a PB label and use a JMP instruction with the name of the label, it doesn't work.
It would make sense if a !jmp with the exclamation mark would be left alone and wihtout the exclamation mark would be able to handle a PB label.
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: EnableASM missing instructions

Post by luis »

@STARGATE since this is not a feature request, maybe it was really intended as a question.

In that case, you can use SSE instructions by using the "!" passthrough to send the instructions directly to FASM.
"Have you tried turning it off and on again ?"
A little PureBasic review
Post Reply