hi!
i have contacted the author of "AfterBurner", and requested some
code to reset the overclocking of palm devices to "normal" during
the execution of my games.
this is the code he supplied:
---
Word save_IMR;
// code provided by "Pilot Man"
save_IMR = (*IMR);
(*PLLCONTROL) &= 0xC7DF;
(*PLLCONTROL) |= 0x2000;
(*PLLFREQ) = 0x123; // just happens to mean "NORMAL"
(*IMR) = save_IMR;
---
on my Palm Professional, and Palm III (3com built) - it works
fine.. if i use AfterBurner, and set the overclocking speed to
anything above 16Mhz (ie: 21Mhz) - when the game is executed,
it runs at 16Mhz.
when the person has underclocked, i speed up the CPU etc..
when the game exits, i set the speed back to whatever it was
however, since its release (the new code) i have had one person
say that a "FATAL EXCEPTION" occurs when running the above code.
his comments was as follows:
---
I installed LodeRunner v7.0 on my WORKPAD(Japanese).
But,tapping the icon of LodeRunner leads SOFTWARE RESET!!
I cannot play LodeRunner v7.0.
I removed previous version before install v7.0.
Do you have any advice?
---
different CPU's? the resetting of CPU speed does work for my
two 3com built palms..
any ideas? thankz in advance.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11