1 2 3 4
This is an example program using the openfirmware client interface on x86. The same program can be compiled on ppc.