Jump to content



Photo
- - - - -

Installing Pocket Viewer Add-Ins On Classpad


  • Please log in to reply
No replies to this topic

#1 TeamFX

TeamFX

    Casio Freak

  • Members
  • PipPipPipPip
  • 131 posts
  • Gender:Male

Posted 24 April 2015 - 12:01 PM

Did you know that you can run Pocket Viewer add-ins in the ClassPad OS without the need for recompilation?

All the PV-S1600 SDK library functions are supported and it even works under ClassPad OS 1.00 which does not support the ClassPad SDK libraries (you need OS 1.20 or later).

There is only one issue: The ClassPad OS, ClassPad Manager, and FA-CP1 will only display certain file extensions. Therefore, you cannot import additional files like databases and you cannot export files created by PV add-ins. The File Transfer Manager does not work with the ClassPad, so you would need some custom communication program here.

But how can you import .pva files?

If you have some file like "BLACKJAK.PVA", then rename it to "BLACKJAK.CPA". Open this file with a hex editor and go to offset 0x40. There should be the value 0x0001. Change it to 0x0002 or 0x0003. This is the so called program mode (1=PV, 2=CP, 3=PV/CP).

Now calculate the file checksum. In WinHex, there is an option named "Checksum (32 bit)". Let's say you get the value 0x0024EAE4. You have to swap byte #1 and byte #2 which yields 0x00EA24E4.

Finally, add the .cpa header to the end of the file.

The file checksum (0x00EA24E4) can be either written to byte position "xxxxxxxx" or "yyyyyyyy":

43 41 53 49 4F 20 43 4C  41 53 53 20 50 41 44 20   CASIO CLASS PAD
41 44 44 49 4E 20 44 41  54 41 20 20 20 20 00 30   ADDIN DATA     0
xx xx xx xx yy yy yy yy  00 00 00 00 00 00 00 00                   

Copy-Paste:
434153494F20434C4153532050414420414444494E204441544120202020003000000000000000000000000000000000

This file can now be loaded using the Add-in Installer, ClassPad Manager or FA-CP1.

 

123.png


Edited by TeamFX, 14 July 2015 - 11:23 AM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users