Toshiba 8X MCU were used in various Toyota ECUs in 80s - 90s. It is based on Motorola M68HC11, however have slightly different instruction set.
To build package rizin, pkg-config, ninja-build, python3 are required.
Building the plugin
meson setup builddir
cd builddir
meson compile
meson install
The plugin is installed to rizin user plugin dir.
Run following command to find out user plugin dir for rizin:
rizin -H RZ_USER_PLUGINS
Verify if plugin install was successful:
$ rz-asm -L | grep t8x
_dA_ 8 t8x MIT Toshiba 8X disassembly plugin
Using rz-asm
command:
$ rz-asm -d -a t8x ca01cb0108
ld a, 0x01
ld b, 0x01
add a, b
Using rizin
:
[0x00000000]> e asm.arch=t8x
[0x00000000]> o ./demo.bin
[0x00000000]> pd 3
0x00000000 ld a, 0x01
0x00000002 ld b, 0x01
0x00000004 add a, b