Welcome, Guest. Please login or register.

Author Topic: PowerPC asm programming  (Read 7881 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: PowerPC asm programming
« on: February 26, 2003, 09:59:53 AM »
Quote

Tickly wrote:
The PowerPC has 32 64bit integr registers, which can be used as 8, 16, 32 or 64bit depending on what you specify with the instruction. They are named R0 to R31.
It also has 32 floating point registers. I can't remember if these are internally 64 or 80bits wide, you'll have to look that up.


AFAIK, the integer register set are only 32-bits wide on 60x, 64-bit on G3 and above. Still, not sure, so don't take my word for it.

The FPU regs are 64-bit IEEE754 compatible, but I think the internal calculation goes higher.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: PowerPC asm programming
« Reply #1 on: February 26, 2003, 02:40:19 PM »
Tickly must be climbing the walls by now :lol:
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: PowerPC asm programming
« Reply #2 on: February 28, 2003, 04:48:13 PM »
Hey Tickly...

Did you know that the integer registers on PowerPC are 32-bits? Thats 32, not 64...

:lol:

Sorry man, I just couldn't resist it :-D
int p; // A