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
RAW
nedcenc.exe -d -i card.raw -o card.bin
- Remove header (first 116 bytes) from
card.bin
using your preferred hex editor.card.bin
first 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
RAW
Indicate
-region 0
for Japanese e-Reader,-region 1
for US e-Reader,-region 2
for Japanese e-Reader+.nedcmake.exe -i main.z80 -type 1 -region 1