PDA

View Full Version : assembler PPC


jr
2002.07.15, 02:46 PM
Hi,
(sorry for my bad english) ...
How can i carry out a simple keyboard- input and display- output in ASSEMBLER (PPC)?
Where can i get a list of operation system functions/calls?

thanks and mit freundlichen Gruessen - jr.

Johan
2002.07.15, 03:32 PM
Originally posted by jr

How can i carry out a simple keyboard- input and display- output in ASSEMBLER (PPC)?
Where can i get a list of operation system functions/calls?


I'm not sure that you'll find every thing that you're looking, but if you have'nt read it already you should read "Inside Macintosh: PowerPC System Software".

http://gemma.apple.com/techpubs/mac/PPCSoftware/PPCSoftware-2.html

.johan

inio
2002.07.15, 03:47 PM
Writing an entire application in assembler is usually pointless (more often on a RISC chip like the PowerPC). When assembler can be useful is when you have a few small routines that are called a LOT, which you think you can optimize better than the compiler (often possible with some of the PowerPC's neater instructions like rlwimi and cntlzw).

In other words: write a shell to handle user interaction and getting the base address and rowbytes of the screen in C, then you can do everything else in assembler.

Poels
2002.07.16, 01:16 PM
You might be interested in http://www.sfu.ca/~akirczen/