Page 1 of 1

Add to documenation

Posted: Mon Jul 17, 2006 11:57 am
by va!n
Using ASM in PB:

Code: Select all

[b]register names:[/b]

        The names of the registers for the x86 architecture are written as follows in an ASM block:

4-byte integer registers: eax, ebx, ecx, edx, ebp, esp, edi, esi

2-byte integer registers: ax, bx, cx, dx, bp, sp, di, si (low words of 4-byte e- registers)

1-byte integer registers: al, ah, bl, bh, cl, ch, dl, dh (low and high bytes of 2-byte -x registers)

Floating-point registers: st(0), st(1), st(2), st(3), st(4), st(5), st(6), st(7)

MMX registers (aliased onto floating-point registers): mm0, mm1, mm2, mm3, mm4, mm5, mm6, mm7

SSE registers: xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7

and a little more detailed info of how and where to use v_ p_ and so on would be nice

Posted: Mon Jul 17, 2006 3:55 pm
by Trond
Let's hope that's not added because that's not how the float registers are written. Besides, is there any other way to write them? (The other ones)

Posted: Mon Jul 17, 2006 4:21 pm
by remi_meier
In FASM they are st0, st1, stx....