2 Commits

Author SHA1 Message Date
7d89deaa02 Updated emulator screenshot 2025-02-14 09:32:22 +01:00
169ea2a292 Update README.md and Makefile 2025-02-14 09:30:54 +01:00
4 changed files with 12 additions and 4 deletions

View File

@ -35,8 +35,8 @@ There is an experimental and unfinished quick load function using a python termi
![Pat80 Memory Monitor](/assets/media/photos/memory_monitor.jpg) ![Pat80 Memory Monitor](/assets/media/photos/memory_monitor.jpg)
## Emulator ## Emulator
The pat80 memory monitor (the os) can be run in a z80 emulator. This repository contains an emulator as submodule, already set up to run the os. The pat80 memory monitor (the os) can be run in a z80 emulator. You can find a very simple one I wrote ad hoc in `pat80-emulator`. It's based (and depends on) the excellent [Z80 emulator library by redcode](https://github.com/redcode/Z80). Follow the instructions on `pat80-emulator/README.md` to build and run it.
To try it, head to `pat80-computer/software/z80-assembly/os/` and run `make run` to build the rom from assembly and start the emulator. You will see some windows showing the emulated computer's memory and register status and the pat80 memory monitor prompt. The emulator requires a rom file to run. To obtain a pat80 rom, head to `pat80-computer/software/z80-assembly/os/` and run `make run` to build the rom from assembly and start the emulator. You will see some windows showing the emulated computer's memory and register status and the pat80 memory monitor prompt.
![Emulator running Memory Monitor](/assets/media/photos/emulator.png) ![Emulator running Memory Monitor](/assets/media/photos/emulator.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

@ -1,3 +1,5 @@
PAT80_EMU_PATH := "../../../../pat80-emulator/build/pat80-emulator"
build: build:
@echo "Building PAT80 rom..." @echo "Building PAT80 rom..."
@z80asm -i main.asm -o rom.bin || (exit 1) @z80asm -i main.asm -o rom.bin || (exit 1)
@ -13,5 +15,9 @@ write: build
@minipro -w rom.bin -p "AT28C64B" @minipro -w rom.bin -p "AT28C64B"
run: build run: build
@echo "Starting emulator..." @echo "Starting emulator" $(PAT80_EMU_PATH)
@../../../../pat80-emulator/z80-python-emulator/src/z80sbc.py -b rom.bin @if [ -f "$(PAT80_EMU_PATH)" ]; then\
"$(PAT80_EMU_PATH)" "rom.bin";\
else\
echo -e "\e[31mYou must build the emulator first. Check pat80-emulator/README.md\e[0m";\
fi

View File

@ -1,5 +1,7 @@
# Pat80 emulator # Pat80 emulator
![Emulator running Memory Monitor](/assets/media/photos/emulator.png)
## Setup ## Setup
Install the required Z80 emulator by redcode following the instructions for your Linux distribution at https://github.com/redcode/Z80 Install the required Z80 emulator by redcode following the instructions for your Linux distribution at https://github.com/redcode/Z80