At 16:18 2002-10-22 -0500, you wrote:
On Tue, 22 Oct 2002 09:03:51 -0400, Martan <[EMAIL PROTECTED]> wrote:

>
>Is there a way to blit directly to the screen for games ?
>
>Thanks,
>Martan
>

I am not real familier with bliting, but if you want to access the
display memory you can use this code.


    UInt32 *ScreenAccessPointer;
    UInt32 *screenRegister;

    screenRegister= (UInt32*)0xFFFFFA00;
    ScreenAccessPointer= (UInt32*)*screenRegister;


0xFFFFFA00 is the hardware reigster that points to the display memory.
This may not be true for all roms, but it works on the Palm III. I you
test this in POSE you will generate to warnings, a hardware register
access warning and a display memory access warning.
This code is very dangerous. It is directly accessing a register in the LCD controller on the original Dragonball. This register is in different locations on other Dragonball-family chips, and all of the color devices use external LCD controllers, rather than the hardware built into the CPU.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to