Re: Modern PowerPC Assembly?
From: Sven LUTHER <hidden>
Date: 1999-10-25 08:17:27
On Sat, Oct 23, 1999 at 12:34:21AM +0200, Gabriel Paubert wrote:
On Fri, 22 Oct 1999, Sean Chitwood wrote:quoted
Can anyone recommend a book or website for PPC Assembly Programming?It depends on what you exactly mean and your level. For smart tricks look for the Compiler Writer's Guide somewhere on IBM's site. I've personnally learnt PPC assembly from reading the architecture specification and got some more useful tricks from the Compiler Writer's Guide. <Shameless plug> For an example of a fairly large (but still comprehensible IMHO) assembly program, you may have a look at my em86 program on ftp://vlab1.iram.es. This is an emulator for x86 BIOSes which allows me to initialize my S3. It's quite heavily commented and the emulation of flags has been designed to make clever use of rlwimi and cntlzw instructions. OTOH the decoding of addressing modes is quite awful spaghetti (but this was faster than indirect branches). Plus the mixture of little and big endian made it very funny to write...
Gabriel, ... Do you think it would be possible to use your emulator to have a ppc based dosemu ? Not that i have time for it right now, but ... Friendly, Sven LUTHER ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/