Disassembles e-Reader z80 binaries into human readable code (assembly).
Prerequisites: download nedcenc.exe and nevpk.exe from caitsith2's site.
To extract the z80 binary from a card's RAW:
- Decode
RAWnedcenc.exe -d -i card.raw -o card.bin - Remove header (first 116 bytes) from
card.binusing your preferred hex editor.card.binfirst bytes should be:76 70 6b 30 (vpk0) - Decode vpk
nevpk.exe -d -i card.bin -o card.z80
Prerequisites: Download Node.js 11.0.0 or a later release.
- Build
npm run-script build - Disassemble
npm start -- -i card.z80
This command outputs main.asm and multiple include files.
Prerequisites: download SDCC and nedcmake.exe from caitsith2's site.
-
Build
sdasz80.exe -l -o -s -p main.o main.asm -
Link
sdldz80.exe -n -- -i main.ihx main.o -
Make binary
makebin.exe -p < main.ihx > main.z80 -
Remove first 256 bytes (0x100) from
main.z80 -
Generate
RAWIndicate
-region 0for Japanese e-Reader,-region 1for US e-Reader,-region 2for Japanese e-Reader+.nedcmake.exe -i main.z80 -type 1 -region 1