Jump to content

- - - - -

Draw Sprite Problem (fx-9860g Sdk)

  • Please log in to reply
No replies to this topic

#1 Sander in 't Hout

Sander in 't Hout


  • Members
  • Pip
  • 2 posts

  • Calculators:

Posted 11 September 2010 - 07:01 PM


I'm trying to learn to program using the Casio FX-9860G SDK with revolution-fx 1.0.
But my sprite doesn't display on my calc, although it displays it perfectly on the SDK's emulator.
It also doesn't work on the Casio FX-9860GII manager. The problem seems to be the new OS 2.0 firmware.
How can I make it compatible?

This is the code of the main function:
[codebox]int AddIn_main(int isAppli, unsigned short OptionNum)
const unsigned char sprite1[] = {
0x01, 0xFF, 0xFF, 0x80, 0x03, 0xF0, 0x0F, 0xE0, 0x0F, 0x80, 0x07, 0xF0, 0x1F, 0x00, 0x00, 0xF8,
0x3C, 0x00, 0x00, 0x3C, 0x7C, 0x00, 0x00, 0x1C, 0x78, 0x00, 0x00, 0x0E, 0xF0, 0x1C, 0x1C, 0x0F,
0xF0, 0x22, 0x22, 0x07, 0xF0, 0x41, 0x41, 0x03, 0xF0, 0x4D, 0x4D, 0x03, 0xF0, 0x4D, 0x4D, 0x03,
0xF0, 0x22, 0x22, 0x03, 0xF0, 0x1C, 0x1C, 0x03, 0xE0, 0x00, 0x00, 0x01, 0xE0, 0x01, 0x80, 0x01,
0xC0, 0x01, 0x00, 0x01, 0xC0, 0x03, 0x00, 0x01, 0x80, 0x02, 0x00, 0x01, 0x80, 0x02, 0x00, 0x01,
0x40, 0x03, 0xC0, 0x02, 0x40, 0x00, 0x00, 0x02, 0x40, 0xFF, 0xFF, 0xC2, 0x20, 0xC5, 0x50, 0x44,
0x10, 0x47, 0x71, 0xC8, 0x10, 0x60, 0x03, 0x08, 0x08, 0x30, 0x1E, 0x10, 0x04, 0x1F, 0xF0, 0x20,
0x03, 0x00, 0x00, 0xC0, 0x00, 0x80, 0x01, 0x00, 0x00, 0x30, 0x0E, 0x00, 0x00, 0x0F, 0xF0, 0x00 };



Print((unsigned char*)"TEST");

DrawSprite(5, 5, 32, 32, 4, sprite1, SDK_VRAM, WHITE);

return 1;

The code doesn't do much. It displays TEST until the user presses the MENU button. It should then display a sprite until the user releases the key.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users