Add to documenation

Everything else that doesn't fall into one of the other PB categories.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Add to documenation

Post 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
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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)
Last edited by Trond on Mon Jul 17, 2006 7:27 pm, edited 1 time in total.
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

In FASM they are st0, st1, stx....
Athlon64 3700+, 1024MB Ram, Radeon X1600
Post Reply