SuperH-based CASIO calculators
fx-CG20, SDK

 

A mini-Prizm-SDK (version 1.09).

New with version 1.09:
News concerning timers.
C++ example code. An object oriented ASCIIZZ-class. An object oriented base ListViewer and some derived classes (f. i. MCS and memory-Viewer).
How to use the status area (controlling Text, Icons and Glyphs). Examples in INSIGHT.
Hint: the Bfile_FindFirst- and Bfile_FindNext-syscallnumbers previously published are not the perfect ones. Use 0x1DB7 instead of 0x1DB6 and 0x1DB9 instead of 0x1DB8.
cfxm asked me to include an option to invoke the testmode (found by cfxm). See:
http://www.omnimaga.org/index.php?PHPSESSID=8673ef5ea2e48c005dc66e3ea7ba42e8&topic=6807.msg166145#msg166145

New with version 1.08:
Insight: direct access of the serial output/input pins.

New with version 1.07:
Insight: FKey-icon demo (find the FKey-bitmap pointer and display).
Insight: standard-progressbar demo.
Insight: scrollbar demo.
SDK: multiple functions per tools-library-source.
SDK: option to suppress certain warning-/error-messages.

New with version 1.06:
Syscall Bdisp_WriteGraph accompanied by some demo in insight. Stay put until you have seen the crawling Alien!
In order to allow the usage of virtual class functions, the original setup.obj has to be used, when binding.
A bug has been fixed with the "Save as..." menu option.

New with version 1.05: corrected the syscall name Bdisp_AllCr_VRAM() to Bdisp_AllClr_VRAM(). Support of assembler modules as additional project sources for the main program as well as for the tools library. Centralized common libraries (f. i. syscall library), hence the directory structure has been changed. Two new important syscalls: PrintMini and PrintMiniGlyph. Changed INSIGHT's moving-boxes example to a moving-balls example to demonstrate glyph-drawing. The console based version is not longer included.

New with version 1.04: SDK equipped with a GUI, to configure the projects more conveniently. The documentation of which resides in the included HTMLHELP-file (fx_calculators_SuperH_based.chm; search for "SDK, getting startet").

New with version 1.03: display test: moving'n'bouncing objects; HTMLHELP-documentation of some information, concerning the fx-9860 and the fx-CG gathered the recent three years.

New with version 1.02: RTC tools, battery information, new syscalls, a new library fxCG_TOOLS.LIB, 256 color bitmap to fxCG icon converter, memory search, memory backup.

The mini-SDK resides in one directory, which structure mustn't be changed. Copy the BIN directory of the CASIO legacy SDK to the subdirectory BIN of the mini-SDK. Copy fx9860G_library.lib of the CASIO legacy SDK to the subdirectory BIN of the mini-SDK. The mini-SDK is a zero-footprint-application. You can start it from any writable drive. Execute pCGSDK.EXE from the mini-SDK's tool-directory. The predefined project is INSIGHT. The subdirectory BIN contains a file setup.obj. This is not the setup.obj of the CASIO legacy SDK.
The resulting INSIGHT.G3A should occur in subdirectory projects\INSIGHT.

The application included (insight):

F1 : memory viewer
    left-right: page up/down
    up-down: line up/down
    F1 : enter address
    F2 : backup a certain portion of memory to storage memory file MEMORY.BKP, starting at the current start address (limited to 2MB at a time)
    F3 : transfer a certain portion of memory to the 3pin-interface, starting at the current start address
    F4 : search either a hex-sequence or a string (depends on displaymode, see F6)
    F6 : toggles displaymode (hex or ascii)
    EXIT: return to the previous menu

HINT! The memory viewer allows the selection of any address! It is possible that viewing certain address-ranges could lead to unpredictable calculator behaviour.

F2 : keyboard codes
    displays the return codes of three different key-read functions
    SDK: syscall 0x0EAB
    PRGM: the program GetKey (syscall 0x0D39)
    MATRIX: GetKeyWait-matrix code (syscall 0x12BF)

    to exit: hit Ac/ON and EXIT consecutively

F3 : keyboard ports
    displays the return values of the key-port-register (0xA44B0000..0xA44B000A)

    0xA44B000A is connected to the contacts 1, 2 and 3 on the PCB.

    to exit: hit Ac/ON and 0 simultaneously

F4 : battery
    displays the battery voltage level

F5 : RTC
    displays the current date and time as well as the current tick (1/128 s) count.
    Hit any arrow key to enter the set mode.
    Select the digits to change, enter date/time and hit EXE to set date/time.
    Hit EXIT to leave the set mode without changing anything.

F6 : next (screen)

next (screen):

F1 : display
    starts some objects to move'n'bounce; exit the demo with one of the keys in the row '0'...EXE.

F2 : MCS-view
    Displays the list of main memory directories.
    F6: swaps the displaymode
    EXE : opens the item-list, if an MCS-directory contains any items.
    In the item-list it is possible to view the content of the item.

F3 : display DD demo
    this demo shows, that direct drawing is much slower than VRAM-DMAC-operation.

F4 : display VRAM demo
    this demo shows, that VRAM drawing is much faster than direct-draw-operation.

F5 : checksums
    calculates the BIOS and OS checksums. Displays the calculated and the nominal checksums.
    (the information necessary to perform this function have been provided by cfxm)

F6 : next (screen)

F1 : WriteGraph
    starts a demo concerning the syscall Bdisp_WriteGraph.

F2 : FKey-icons

F3 : Progressbar demo

F4 : Scrollbar demo

F5 : direct 3pin

F6 : next (screen)

F1 : Setup
    Displays the complete setup-area.

F2 : StrList
    a demo of a string-list class

F3 : StrList
    a demo of a ListView class

F6 : next (screen)

F1 : Testmode (cfxm)

F2 : syscall verify
    This option is not enabled by default. You have to change the source and rebuild INSIGHT.G3A to enable it.
    The option is important to verify the documentation of syscalls, which are normally not used inside of INSIGHT.
    The MCS-calls should not be invoked lightheaded, if at all. Read the included documentation.

    a list of some syscalls;
    UP/DOWN move one item at a time;
    RIGHT/LEFT scroll eight items at a time;
    EXIT leaves the mode;
    EXE starts the syscall. The displayed results depend on the syscall. Some of the syscalls do not return. Use the MENU-key.


 

 


(03.07.2011 05:52:47)