WQXEmu
WQXEmu emulates Wenquxing NC1020, Wenquxing PC1000, Wenquxing CC800 and 2 more systems. It reads 12 files, 11 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.
About this profile
Install this emulator's files
For WQXEmu inside RetroArch, Batocera or another setup. The installer finds the setup and its BIOS folder, then downloads only the files this emulator reads there and checks each one.
Open Start. Type PowerShell, press Enter. Click Copy. Right-click to paste. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator wqxemuPress Cmd+Space. Type Terminal, press Return. Click Copy. Press Cmd+V. Press Return.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator wqxemuOpen a terminal, often with Ctrl+Alt+T. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator wqxemuHold power, pick Switch to Desktop. Open Konsole. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator wqxemuInstall Termux, a terminal app. Paste the line. Press Enter. Accept the Python install and allow the storage access Android asks for.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator wqxemuOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator wqxemuTechnical notes
Wenquxing electronic dictionary emulator written in Rust by AloysHF. The libretro core and the wqx-emu standalone binary share the wqxemu-core crate, which runs the original firmware of five models on an emulated 6502 SoC: NC1020, PC1000, CC800, NC2000 and NC3000. The git.libretro.com repository is a mirror of the GitHub one at the same commit, and the buildbot consumes its .gitlab-ci.yml.
The core takes no content. retro_load_game ignores the game info it is given and starts the machine, supports_no_game being set (crates/wqxemu-libretro/src/lib.rs:776-793, crates/wqxemu-libretro/src/lib.rs:608-612). The model comes from the wqxemu_model core option, NC1020 when unset (crates/wqxemu-libretro/src/lib.rs:325-345, crates/wqxemu-libretro/src/lib.rs:1111-1129).
The firmware set is read from {system}/wqxemu/<model>/ (crates/wqxemu-libretro/src/lib.rs:310-323, crates/wqxemu-libretro/src/lib.rs:389-407). The folder names and file names are fixed and compared byte for byte against the directory entries, so a folder or file that differs only in case is not found (crates/wqxemu-core/src/machine.rs:111-131, model names in crates/wqxemu-core/src/machine.rs:33-44). Each model reads only its own files: obj_lu.bin and nc1020.fls for the NC1020, pc1000.rom and pc1000.nor for the PC1000, obj.bin and cc800.fls for the CC800, nc2000.nor, nc2000.nand and nc2000.nand0 for the NC2000, nc3000.nor, nc3000.nand and an optional nc3000.nand0 for the NC3000 (crates/wqxemu-core/src/machine.rs:63-84, crates/wqxemu-core/src/machine.rs:176-194). A missing folder or any missing required file fails the start with a message listing every missing name (crates/wqxemu-core/src/machine.rs:153-175, crates/wqxemu-core/src/machine.rs:196-204), shown by the core before retro_load_game returns false (crates/wqxemu-libretro/src/lib.rs:787-793). Other files in the folder are ignored.
The Emscripten build used by EmulatorJS reads the same layout from the root of the extracted firmware archive, and there the model is the only wqxemu/<model>/ folder the archive holds. Several model folders stop the start (crates/wqxemu-libretro/src/lib.rs:347-387).
Each machine reads its files whole with std::fs::read and checks their size only: a ROM or NOR image must be at least as large as the window it fills, the PC1000 ROM must be exactly 12 MiB or 16 MiB, and NAND images are copied without any check. A file that fails the check makes Emulator::new fail and retro_load_game returns false with the loader's message (crates/wqxemu-libretro/src/lib.rs:806-812). No hash is verified.
The firmware files are never written. The writable flash, NAND, RAM and peripheral state of a session is serialized to {save}/<model>/<fingerprint>.wqxs, a gzip file the core creates on unload and reloads at the next start of the same model and firmware set (crates/wqxemu-libretro/src/lib.rs:441-467, crates/wqxemu-libretro/src/lib.rs:814-842, crates/wqxemu-core/src/save.rs:46-96). The Emscripten build writes no session file. The fingerprint is an FNV-1a over the slot layout and the content of every file of the set (crates/wqxemu-core/src/machine.rs:252-276). That file is created by the core. retro_get_memory_data returns null for every memory id (crates/wqxemu-libretro/src/lib.rs:1025-1032).
The standalone binary reads the same wqxemu/<model>/ layout below --system-dir, ./system by default, and --model selects the machine, nc1020 by default (crates/wqxemu/src/main.rs:27-42, crates/wqxemu/src/main.rs:235-249). It keeps a session only in the file named by --state-file (crates/wqxemu/src/main.rs:179-233). Its device skin is drawn by code by default, or taken from include_bytes! PNGs with --skin image (crates/wqxemu/src/main.rs:53-55, crates/wqxemu/src/keypad.rs:72-91).
12 files: 11 required, 1 optional.
In this collection: 12 in repo and 0 missing.
Required
Section titled “Required”| File | Status |
|---|---|
obj_lu.binNC1020 system ROM, three 8 MiB volumes
Validation and source
| required for Wenquxing NC1020 in repo |
nc1020.flsNC1020 NOR flash, 32 banks of 32 KiB
Validation and source
| required for Wenquxing NC1020 in repo |
pc1000.romPC1000 system ROM, obj1 + obj2 + obj3
Validation and source
| required for Wenquxing PC1000 in repo |
pc1000.norPC1000 NOR flash, 16 banks of 32 KiB
Validation and source
| required for Wenquxing PC1000 in repo |
obj.binCC800 system ROM, two volumes of 256 banks
Validation and source
| required for Wenquxing CC800 in repo |
cc800.flsCC800 NOR flash, 16 banks of 32 KiB
Validation and source
| required for Wenquxing CC800 in repo |
nc2000.norNC2000 NOR flash, 16 banks of 32 KiB
Validation and source
| required for Wenquxing NC2000 in repo |
nc2000.nandNC2000 NAND flash main area, 65536 pages of 528 bytes
Source
| required for Wenquxing NC2000 in repo |
nc2000.nand0NC2000 NAND flash first plane, 64 pages of 528 bytes
Source
| required for Wenquxing NC2000 in repo |
nc3000.norNC3000 NOR flash, 32 banks of 32 KiB
Validation and source
| required for Wenquxing NC3000 in repo |
nc3000.nandNC3000 NAND flash, two planes of 65536 pages of 528 bytes
Source
| required for Wenquxing NC3000 in repo large_file |
Optional
Section titled “Optional”| File | Status |
|---|---|
nc3000.nand0NC3000 NAND flash first plane, 64 pages of 528 bytes
Source
| in repo |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start