A playground to learn more about how CPU works and potentially create a working emulator in the years to come!
Go to file
kishimisu a6e1d338a8 Improved C.Basic support + various fixes 2023-12-07 21:09:13 +01:00
assets First iteration of C.Basic support 2023-12-04 22:40:09 +01:00
fx9860-emulator Improved C.Basic support + various fixes 2023-12-07 21:09:13 +01:00
scripts add auto-generated instructions 2023-11-12 18:35:51 +01:00
.gitignore add browser, inputs & display 2023-11-16 01:09:46 +01:00
README.md First iteration of C.Basic support 2023-12-04 22:40:09 +01:00

README.md

Casio fx-9860 SH4 emulator

This is a work-in-progress emulator for the Casio fx-9860 SH4 models

Broswser demo : https://sh4.vercel.app/

All non-DSP instructions are implemented, except the following ones:

  • 'MOVUAL', 'MOVUALP', 'ICBI', 'OCBI',
  • 'OCBP', 'OCBWB', 'PREFI', 'SLEEP',
  • 'SYNCO', 'SETRC', 'SETRCI',

fx9860-emulator/ contains the source for the emulator

scripts/ contains the code for auto-generating the instructions set from the doc

Browser version

To build the browser version of the emulator, make sure you have emscripten downloaded and installed: https://emscripten.org/docs/getting_started/downloads.html

First, make sure #define USE_EMSCRIPT is enabled in main.h (not as a comment). Then:

cd fx9860-emulator
mkdir build
cd build
emcmake cmake ..
emmake make

Then, run the following command:

# TODO