Skip to content

CG50 Internals

Notes on how the Casio fx-CG50 works, seen from software: the memory map, the SH-4A CPU core and its quirks, the on-chip peripherals, and the internals of the calculator's OS (3.60).

It grew out of casio-cg50, an emulator that boots the real OS from reset and runs the built-in apps and add-ins, on the desktop (the app CG50 Studio) and on Android. Building it meant pinning down exactly how the hardware behaves; this site is where those findings are written down.

Software only

Nothing here involves opening the calculator. Everything comes from reading the OS in Ghidra, running it in the emulator, and small probe add-ins run on a real fx-CG50.

How to read a page

Each fact says how it was established:

Verified on hardware

Measured on a real fx-CG50 with a probe add-in. The strongest kind of evidence.

Verified in the emulator

The OS (or an add-in) only works when the emulator behaves this way, and a test in the emulator's suite holds it to that.

Unconfirmed

Read from the OS's code, or observed informally, but not measured. Treat as a good guess.

See How facts are verified for the details.

Start here

Other resources

These cover ground this site doesn't repeat:

  • WikiPrizm: syscalls (how they resolve in 3.60: Syscalls) and the PrizmSDK/libfxcg view of the calculator.
  • gint and Planète Casio: the add-in kernel whose drivers are themselves a map of the SH7305.
  • Simon Lothar's fx calculators based on SuperH documentation: OS headers and syscall lists.

Not affiliated with Casio

Casio and fx-CG50 are trademarks of Casio Computer Co., Ltd. This site contains no Casio firmware. OS addresses refer to OS 3.60 unless stated.