NOTE: This is a modified version of the Casio emulator developed by LBPHacker and user202729 which supports ClassWiz II models.
Files are modified so that they can work on windows.
This repository will get updated with new models in the models
folder. Note that ROMs are not included (for copyright reasons), you have to obtain one from somewhere else or dump it from a real calculator or emulator. (note that models labeled with _emu
are for ROMs dumped from official emulators)
An emulator and disassembler for the CASIO calculator series using the nX-U8/100 core.
With debuggers.
The model.lua configured for ClassWiz II models is included in models/fx991cw_emu.
To build it, install tdm-gcc and run build.bat
Each argument should have one of these two formats:
key=value
wherekey
does not contain any equal signs.path
: equivalent tomodel=path
. (you cannot use both at the same time)
Supported values of key
are: (if value
is not mentioned then it does not matter [0 = off, 1 = on])
paused
: Pause the emulator on start.model
: Specify the path to model folder. Examplevalue
:models/fx570esplus
.ram
: Load RAM dump from the path specified invalue
.clean_ram
: Ifram
is specified, this prevents the calculator from loading the file, instead starting from a clean RAM state.preserve_ram
: Specify that the RAM should not be dumped (to the value associated with theram
key) on program exit, in other words, preserve the existing RAM dump in the file.strict_memory
: Print an error message if the program attempt to write to unwritable memory regions corresponding to ROM. (writing to unmapped memory regions always print an error message)pause_on_mem_error
: Pause the emulator when a memory error message is printed.history
: Path to a file to load/save command history.script
: Specify a path to Lua file to be executed on program startup (usingvalue
parameter).resizable
: Whether the window can be resized.width
,height
: Initial window width/height on program start. The values can be in hexadecimal (prefix0x
), octal (prefix0
) or decimal.exit_on_console_shutdown
: Exit the emulator when the console thread is shut down.hidegui
: Don't show debugger windows.
Note that passing an argument at least twice will cause the program to panic.
Those Lua functions and variables can be used at the Lua prompt of the emulator.
-
emu:set_paused
: Set emulator state. Call with a boolean value. -
emu:tick()
: Execute one command. -
emu:shutdown()
: Shutdown the emulator. -
cpu.xxx
: Get register value.xxx
should be one ofr0
tor15
- One of the register names. See
register_record_sources
array inemulator\src\Chipset\CPU.cpp
. erN
,xrN
,qrN
are not supported.
-
cpu.bt
: A string containing the current stack trace. -
code[address]
: Access code. (By words, only use even address, otherwise program will panic) -
data[address]
: Access data. (By bytes) -
data:watch(offset, fn)
: Set watchpoint at addressoffset
-fn
is called whenever data is written to. Iffn
isnil
, clear the watchpoint. -
data:rwatch(offset, fn)
: Set watchpoint at addressoffset
-fn
is called whenever data is read from as data. Iffn
isnil
, clear the watchpoint.
Some additional functions are available in lua-common.lua
file.
To use those, it's necessary to pass the flag script=emulator/lua-common.lua
.