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