How yu34567890/bob16pp works
bob16++ is a command-line emulator for little-endian Bob16 binaries, preserving the base instruction set while adding arithmetic operations through TRAP 4. The user supplies a binary path; the program loads it and repeatedly executes instructions. Within the emulator, the instruction dispatcher handles base operations and routes arithmetic expansion and trap services to their handlers. The excerpts show the execution loop, instruction dispatch, and TRAP 4 call; loading details and some trap behavior are documented but not fully excerpted.
Main entry points: main.c Instruction dispatcher
Components 7
Emulator runtime
- CLI and loader
main.c - Machine state
main.c
Instruction handling
- Instruction dispatcher
main.c - Arithmetic expansion
main.c
Trap services
- Trap I/O
main.c
Other components
- User
- Bob16 binary
Connections 7
- User → CLI and loader: runs
main.c - User → Bob16 binary: provides
- CLI and loader → Machine state: loads
main.c - CLI and loader → Instruction dispatcher: ticks
main.c - Instruction dispatcher → Machine state: reads/writes
main.c - Instruction dispatcher → Arithmetic expansion: dispatches
main.c - Instruction dispatcher → Trap I/O: dispatches
main.c