Skip to content

PSX3DS v0.2.0 — ARM11v6K Dynarec, PICA200 Hardware GPU, CHD Support & Installable CIA

Choose a tag to compare

@codescv codescv released this 06 Nov 16:52
· 17 commits to main since this release

PSX3DS v0.2.0 — ARM11v6K Dynarec, PICA200 Hardware GPU, CHD v5 & Installable CIA

PSX3DS is a PlayStation 1 (PSX) emulator built from scratch in C11 and ARMv6K assembly specifically for the Nintendo 3DS (ARM11 MPCore + VFPv2 + PICA200 GPU + 4-core multi-threading).

v0.2.0 adds full CHD v1–v5 compressed disc streaming (cdzl / cdlz / cdzs / cdfl + multi-hunk LRU cache + Core 2 async offload) and an installable universal .cia package unlocking native Horizon OS SVC 0x70 hardware W^X dual-mapped JIT on Luma3DS across both New 3DS and Old 3DS.


English Highlights

  • Installable Universal .cia (psx3ds.cia, 789 KiB):
    • Install directly via FBI onto the 3DS Home Menu (TitleID 000400000F853D00, custom 3D banner, icon & boot chime).
    • Grants native SVC 0x70 (ControlProcessMemory) for hardware W^X dual-mapped RW+RX JIT (JIT_MEM_MIRROR_RWRX) on Luma3DS, 804 MHz ARM11 + 2 MiB L2 + 124 MiB FCRAM + Core 2 + ir:rst / qtm:s C-Stick & ZL/ZR on New 3DS / New 2DS XL.
    • Automatically adapts to Old 3DS / Old 2DS (64 MiB FCRAM, 268 MHz) via the small_mem profile (20 MiB linear heap + 42.6 MiB normal heap, 26 MiB arena, 6 MiB JIT cache, 20-slot RGBA5551 texture cache, 4-slot CHD cache).
  • Full CHD v1–v5 Compressed Disc Streaming (libchdr v0.3.0):
    • Supports all four CHD v5 CD codecs — cdzl (Deflate), cdlz (LZMA), cdzs (Zstandard), and cdfl (FLAC 16-bit CD-DA + Subcode) — plus legacy CHD v1–v4, shrinking PS1 multi-bin dumps by 40–60% into single .chd files (chdman createcd -i game.cue -o game.chd).
    • Exact CD_TRACK_PADDING = 4 multi-track frame remapping, synthesized Q-subchannel BCD MSF addresses, and ARMv6K two-sample-per-word REV16 big-to-little-endian CD-DA swap.
    • 8-slot LRU hunk cache (87.5% sequential cold hit rate; 1,531 MB/s warm on ARM11v6K) + lock-serialized Core 2 async decompression, running 64×–138× faster than PS1 2× CD-ROM (22.4–48.3 MB/s cold decode on ARM11v6K).
  • arm_jit MIPS R3000A → ARM11v6K Dynamic Recompiler & 100% Inline GTE:
    • 71.0× faster than interpreter on compute loops; all 22 GTE (COP2) commands emitted inline using ARMv6 SMLAD/SMLALD (1,150 / 1,150 gte-test-all, 00000101 psxtest_cpu).
    • Sub-page 64-byte SMC bitmask eliminates display-list/BSS false invalidations (69/frame → 0/frame steady-state recompiles; 788.8 FPS Cube, 512.7 FPS PSXNICCC on ARM11v6K harness).
  • Batched PICA200 Hardware GPU (gpu_citro3d) + Multi-Core SPU (ndsp):
    • 2-stage TEV textured/untextured/FillRect batch fusion + Morton texture cache with per-8×8-tile STP semi-transparency masks (2.5×–3.5× faster than ARMv6 SIMD software rasterizer) + Core 1 44.1 kHz stereo SPU worker (92–97% fewer audio underruns).

Quick Start (SD Card Installation)

  1. Extract psx3ds-v0.2.0-3ds.zip directly to the root of your 3DS SD card (sdmc:/), or grab standalone psx3ds.cia / psx3ds.3dsx.
  2. Recommended (.cia): Open FBI → SD → cia → psx3ds.cia → Install and delete CIA, then launch PSX3DS from the Home Menu.
    (Homebrew Launcher users can launch sdmc:/3ds/psx3ds/psx3ds.3dsx directly.)
  3. Place your legally dumped PS1 BIOS (SCPH1001.BIN) in sdmc:/psx3ds/bios/ (MIT-licensed openbios.bin is pre-included for homebrew / PS-EXE titles; retail CD/CHD games require a console BIOS) and drop .chd / .cue+.bin / .iso / .exe titles into sdmc:/psx3ds/roms/. Ensure sdmc:/3ds/dspfirm.cdc is dumped for hardware ndsp audio.

中文更新说明(v0.2.0 亮点)

  • 原生可安装 .cia 安装包(支持 FBI 安装,通吃新三 / 老三):
    • 使用 Luma3DS 上的 FBI 安装 psx3ds.cia(自带专属 3DS 桌面图标、横幅动画与启动音效),直接从桌面启动。
    • 原生解锁 Horizon OS SVC 0x70 硬件级 W^X 双映射动态重编译(JIT_MEM_MIRROR_RWRX);在 New 3DS / New 2DS XL 上自动开启 804 MHz 超频 + 2 MiB L2 缓存 + 124 MiB 大内存 + Core 2 独立光驱核 + C-Stick 右摇杆与 ZL/ZR(ir:rst / qtm:s);在 Old 3DS / 2DS(64 MiB / 268 MHz) 上自动切换 small_mem 精简内存池并保持满速 ARM11 JIT!
  • 完整支持 CHD v1–v5 无损压缩光盘镜像(单文件省空间 40%–60%):
    • 内置 libchdr v0.3.0 + 3DS 硬件浮点解码库,完整支持 cdzl(Deflate)、cdlz(LZMA)、cdzs(Zstd)、cdfl(FLAC 无损音轨 + ARMv6K REV16 字节序加速) 四大 CHD v5 编码与多轨 4 扇区对齐重映射(可通过 chdman createcd -i game.cue -o game.chd 一键转换)。
    • 配备 8 槽位 LRU Hunk 缓存(顺序读取命中率 87.5%,ARM11 缓存命中带宽 1,531 MB/s,冷解码吞吐达 PS1 双倍速光驱的 64–138 倍)以及 Core 2 后台异步预读解压,UI 列表自动显示 [CHD] 标识与实时缓存命中率。
  • 专为 3DS ARM11 + PICA200 深度定制的极速内核:
    • arm_jit 动态重编译器 + 100% 内联 ARMv6K GTE 几何引擎(全部 22 条 GTE 指令采用 SMLAD/SMLALD 内联发射,零函数调用开销,通过 psxtest_cpu 与 gte-test-all 1150/1150 严苛测试)+ 64 字节子页级 SMC 脏行掩码(稳态每帧重编译降至 0)。
    • PICA200 citro3d 硬件加速渲染(2 阶段 TEV 批次融合 + Morton 纹理缓存 + 8×8 图块半透明 STP 精准分类)+ Core 1 独立 SPU 44.1 kHz 混音线程。

安装与目录结构

将 psx3ds-v0.2.0-3ds.zip 解压到内存卡根目录:

  • sdmc:/cia/psx3ds.cia — 推荐通过 FBI 安装至桌面(解锁完整 SVC 0x70 W^X JIT 权限)
  • sdmc:/3ds/psx3ds/{psx3ds.3dsx, psx3ds.smdh} — Homebrew Launcher 自制系统启动版
  • sdmc:/psx3ds/bios/ — 放入自备主机提取的 SCPH1001.BIN(压缩包内亦附带开源 MIT 协议 openbios.bin)
  • sdmc:/psx3ds/roms/ — 放入 .chd(推荐)、.cue/.bin、.iso 或 .exe 游戏镜像

Benchmark & Verification Snapshot (v0.2.0)

Metric Measured Result
Unit & Sanitizer Gates (ctest) 19 / 19 PASS on x86_64 ASan+UBSan (-Werror, 0 leaks/UB) & 19 / 19 PASS on qemu-arm -cpu arm11mpcore (0 warnings, 0 SIGILL)
PS1 CPU & GTE Accuracy (arm_jit) psxtest_cpu.exe 00000101 PASS; gte-test-all.exe 1,150 / 1,150 PASS (100% inline ARMv6K GTE)
CHD v5 Throughput (ARM11v6K / x86_64) Zstd 48.3 / 206.9 MB/s, Deflate 28.7 / 163.0 MB/s, LZMA 27.6 / 108.3 MB/s, FLAC 22.4 / 118.2 MB/s; 8-slot LRU warm 1,531 / 28,356 MB/s
3DS .cia/.cci & .3dsx (azahar-headless) Cube.exe 120.7 FPS (N3DS) / 120.2 FPS (O3DS 64 MiB small_mem); PSXNICCC.exe 117.9 FPS; cube_v5.chd bit-identical vs ISO

See docs/BENCHMARKS.md and docs/ARCHITECTURE.md for full architecture and telemetry details. Verify release downloads against SHA256SUMS.txt.