Page 1 of 1

list of x86 instructions usable in assembler primitive?

Posted: Sun Oct 27, 2013 7:51 pm
by KG_is_back
Is there a list of x86 instructions that work in assembler primitive? the list within component reference is clearly incomplete. Why do some instructions work and others don't?

for example PADDD (add packed 32bit integers) work, but PSUBD (subtract packed 32bit integer) does not work. Why? Is it because of compiler simply doesn't support it?

Re: list of x86 instructions usable in assembler primitive?

Posted: Mon Oct 28, 2013 4:19 pm
by stw
There's a list of opcodes in the SynthMaker Wiki. Unfortunately the link on the homepage is redirected.
Anyway... here's the direct link to the article:

http://www.synthmaker.co.uk/dokuwiki/do ... of_opcodes

I don't know if there was anything added for FS.

Re: list of x86 instructions usable in assembler primitive?

Posted: Mon Oct 28, 2013 11:26 pm
by KG_is_back
and why only eax (and ebx if you push it on the stack before use and pop after it) is usable as reg and other registers (like ecx,edx) are not?

Re: list of x86 instructions usable in assembler primitive?

Posted: Thu Oct 31, 2013 5:34 pm
by KimSteff
Also. How do you declair procedure. you can call it and return from it but i just cant figur out to make one !

Re: list of x86 instructions usable in assembler primitive?

Posted: Sun Nov 03, 2013 1:40 pm
by KG_is_back
KimSteff wrote:Also. How do you declair procedure. you can call it and return from it but i just cant figur out to make one !


If I get it right procedure is declared by a label (for example "procedure1), anywhere in the code and it should be jumped. When you enter instruction Call procedure1; code should jump to the procedure1 label and execute code followed by it until it finds ret; and returns to the position of call porcedure1;
However in this assembler instead of label Call finction is followed by a reg, which contains the position of the start of the procedure. But how the fck should I find that out?! :?
It should look like this, from what I know:

Code: Select all

jmp proceduredeclaration;  //the uncodnitional jump would also be very welcome to find in assembler
procedure1:
//code of the procedure
ret;
procedure declaration:
//codecodecodecode
call procedure1;
//codecodecodecode

Re: list of x86 instructions usable in assembler primitive?

Posted: Wed Nov 06, 2013 8:22 pm
by KimSteff
Well. I was acturly thinking about Assembler coding. And your 100% right about the jmp!