How pmduck486/iitpsx-processor works
IITPSx is a command-line assembler and processor emulator. A user assembles an assembly source into an object file (plus a listing and log), then supplies that object file to the emulator. The assembler performs two passes; the emulator loads and executes the program, reporting machine state and optional traces or memory dumps. The graph reflects the README and the sampled portions of both C files; internal details not shown in the excerpts are not expanded.
Main entry points: asm.c Two-pass assembler · emu.c Emulator
Components 8
Assembly
- Two-pass assembler
core/asm.c - Object program
- Listing and log
Execution
- Emulator
core/emu.c - Registers and memory
core/emu.c - Trace and reports
core/emu.c
Other components
- User
- Assembly source
Connections 8
- User → Two-pass assembler: runs on
README.md - Assembly source → Two-pass assembler: assembles
README.md - Two-pass assembler → Object program: writes object
README.md - Two-pass assembler → Listing and log: writes listing and log
README.md - User → Emulator: runs on
README.md - Object program → Emulator: loads program
README.md - Emulator → Registers and memory: updates state
core/emu.c - Emulator → Trace and reports: prints results
README.md