This project provides a Docker-based environment for simulating Motorola 6800 assembly programs using EXORsim.
- Dockerized EXORsim: A consistent environment for running 6800 code.
- Convenient Runner: The
run-6800script simplifies loading hex files, executing them, and inspecting registers and memory. - Sample Programs: Includes example 6800 hex programs in the
programs/directory.
Build the 6800-exorsim image using the provided Dockerfile:
docker build -t 6800-exorsim .Use the run-6800 script to execute a hex program. For example, to run a 7x7 multiplication:
./run-6800 programs/mul-7x7.hex 0000 0102 1Usage:
./run-6800 PROGRAM.hex [START_ADDR] [DUMP_ADDR DUMP_LEN]...
START_ADDR: Hex start address (default:0000).DUMP_ADDR DUMP_LEN: Pairs of hex address and byte count to dump after execution.
Dockerfile: Defines the EXORsim build and runtime environment.run-6800: Bash script to bridge hex files and the simulator.programs/: Contains Motorola 6800 hex programs..gitignore: Configured to ignore theet-3400-simulatorsubdirectory.
The run-6800 script:
- Strips comments and non-hex characters from the input
.hexfile. - Converts the hex to a binary file using
xxd. - Sets an automatic breakpoint at the end of the loaded program.
- Executes the program in the Dockerized EXORsim.
- Dumps registers and requested memory locations.
Note: This project is independent of the et-3400-simulator project.