Welcome, Guest. Please login or register.

Author Topic: PowerPC asm programming  (Read 7851 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Rogue

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 566
    • Show all replies
    • http://www.hyperion-entertainment.com
Re: PowerPC asm programming
« on: February 26, 2003, 02:33:32 PM »
The PowerPC has 32 registers with 32 bit each, named R0, R1.. up to R31. I doubt that you will have much fun converting x86 assembler to PowerPC - the two models are radically different. You should look for a high-level language like C, for example.

There is no equivalent to interrupt 10h, as much as there isn't on e.g. Linux. If you are looking at AmigaOS, you should use graphics.library or Picasso96API.library and its functions to perform graphics operations, and intuition.library for user interface stuff.
Look out, I\'ve got a gun
 

Offline Rogue

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 566
    • Show all replies
    • http://www.hyperion-entertainment.com
Re: PowerPC asm programming
« Reply #1 on: February 28, 2003, 05:36:14 PM »
Quote

fatman2021 wrote:
I like to try to stay far away from any proprietary code. This allows me to port my code to other operating systems written for the PowerPC.


You are already using proprietary code if you are using int10 and VBE. Not only proprietary, but also entirely non-portable.

Every OS will impose some API on you, there is simply no way to do otherwise. A portabillity layer is a good idea, something like libSDL for example.
Look out, I\'ve got a gun