# rickgalasio/zuz80 architecture

> Architecture diagram of the GitHub repository rickgalasio/zuz80, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rickgalasio/zuz80
- Repository: https://github.com/rickgalasio/zuz80

## Overview

This is a collection of old ZX Spectrum snapshot utilities, not a single orchestrated application. The documented workflows are disassembly, snapshot comparison and patch generation, and byte editing. The README does not describe how the tools invoke one another, so the graph keeps them independent; several programs are listed but their purpose is unknown. Only README-documented behavior is represented.

Main entry points: [`ZXPATH2.PAS`](https://github.com/rickgalasio/zuz80/blob/main/ZXPATH2.PAS) (Two-snapshot diff), [`ZXPATH3.PAS`](https://github.com/rickgalasio/zuz80/blob/main/ZXPATH3.PAS) (Three-snapshot diff), [`ZXBAT.PAS`](https://github.com/rickgalasio/zuz80/blob/main/ZXBAT.PAS) (Patch generator), [`ZXSET.PAS`](https://github.com/rickgalasio/zuz80/blob/main/ZXSET.PAS) (Byte editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Tool user"))
node_snapshot["SNA snapshot"]
node_patch["BAT patch"]
node_zuz80["Z80 disassembler<br/>[ZUZ80.PAS]"]
node_zxbat["Patch generator<br/>[ZXBAT.PAS]"]
node_zxend["Unknown utility<br/>[ZXEND.PAS]"]
node_zxld["Unknown utility<br/>[ZXLD.PAS]"]
node_zxlook["Unknown utility<br/>[ZXLOOK.PAS]"]
node_zxpath["Unknown utility<br/>[ZXPATH.PAS]"]
node_zxpath2["Two-snapshot diff<br/>[ZXPATH2.PAS]"]
node_zxpath3["Three-snapshot diff<br/>[ZXPATH3.PAS]"]
node_zxset["Byte editor<br/>[ZXSET.PAS]"]
node_zxsetn["Unknown utility<br/>[ZXSETN.PAS]"]
node_zxtela["Unknown utility<br/>[ZXTELA.PAS]"]
node_zxtt["Unknown utility<br/>[ZXTT.PAS]"]
node_zxuz80["Z80 mnemonics<br/>[ZXUZ80.PAS]"]
node_zxvi["Unknown utility<br/>[ZXVI.PAS]"]

node_user -->|"runs"| node_zuz80
node_snapshot -->|"disassembles"| node_zuz80
node_user -->|"runs"| node_zxbat
node_zxbat -->|"generates"| node_patch
node_user -->|"runs"| node_zxpath2
node_snapshot -->|"compares"| node_zxpath2
node_zxpath2 -->|"generates"| node_patch
node_user -->|"runs"| node_zxpath3
node_snapshot -->|"compares"| node_zxpath3
node_zxpath3 -->|"generates"| node_patch
node_user -->|"runs"| node_zxset
node_zxset -->|"sets byte"| node_snapshot

click node_zuz80 "https://github.com/rickgalasio/zuz80/blob/main/ZUZ80.PAS"
click node_zxbat "https://github.com/rickgalasio/zuz80/blob/main/ZXBAT.PAS"
click node_zxend "https://github.com/rickgalasio/zuz80/blob/main/ZXEND.PAS"
click node_zxld "https://github.com/rickgalasio/zuz80/blob/main/ZXLD.PAS"
click node_zxlook "https://github.com/rickgalasio/zuz80/blob/main/ZXLOOK.PAS"
click node_zxpath "https://github.com/rickgalasio/zuz80/blob/main/ZXPATH.PAS"
click node_zxpath2 "https://github.com/rickgalasio/zuz80/blob/main/ZXPATH2.PAS"
click node_zxpath3 "https://github.com/rickgalasio/zuz80/blob/main/ZXPATH3.PAS"
click node_zxset "https://github.com/rickgalasio/zuz80/blob/main/ZXSET.PAS"
click node_zxsetn "https://github.com/rickgalasio/zuz80/blob/main/ZXSETN.PAS"
click node_zxtela "https://github.com/rickgalasio/zuz80/blob/main/ZXTELA.PAS"
click node_zxtt "https://github.com/rickgalasio/zuz80/blob/main/ZXTT.PAS"
click node_zxuz80 "https://github.com/rickgalasio/zuz80/blob/main/ZXUZ80.PAS"
click node_zxvi "https://github.com/rickgalasio/zuz80/blob/main/ZXVI.PAS"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_snapshot,node_patch toneIndigo
class node_zuz80,node_zxbat,node_zxend,node_zxld,node_zxlook,node_zxpath,node_zxpath2,node_zxpath3,node_zxset,node_zxsetn,node_zxtela,node_zxtt,node_zxuz80,node_zxvi toneTeal
```

## Components

### Other components

- **Tool user**
- **SNA snapshot**
- **BAT patch**
- [Z80 disassembler](https://github.com/rickgalasio/zuz80/blob/main/ZUZ80.PAS): `ZUZ80.PAS`
- [Patch generator](https://github.com/rickgalasio/zuz80/blob/main/ZXBAT.PAS): `ZXBAT.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXEND.PAS): `ZXEND.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXLD.PAS): `ZXLD.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXLOOK.PAS): `ZXLOOK.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXPATH.PAS): `ZXPATH.PAS`
- [Two-snapshot diff](https://github.com/rickgalasio/zuz80/blob/main/ZXPATH2.PAS): `ZXPATH2.PAS`
- [Three-snapshot diff](https://github.com/rickgalasio/zuz80/blob/main/ZXPATH3.PAS): `ZXPATH3.PAS`
- [Byte editor](https://github.com/rickgalasio/zuz80/blob/main/ZXSET.PAS): `ZXSET.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXSETN.PAS): `ZXSETN.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXTELA.PAS): `ZXTELA.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXTT.PAS): `ZXTT.PAS`
- [Z80 mnemonics](https://github.com/rickgalasio/zuz80/blob/main/ZXUZ80.PAS): `ZXUZ80.PAS`
- [Unknown utility](https://github.com/rickgalasio/zuz80/blob/main/ZXVI.PAS): `ZXVI.PAS`

## Connections

- Tool user → Z80 disassembler: runs (evidence: `README.md`)
- SNA snapshot → Z80 disassembler: disassembles (evidence: `README.md`)
- Tool user → Patch generator: runs (evidence: `README.md`)
- Patch generator → BAT patch: generates (evidence: `README.md`)
- Tool user → Two-snapshot diff: runs (evidence: `README.md`)
- SNA snapshot → Two-snapshot diff: compares (evidence: `README.md`)
- Two-snapshot diff → BAT patch: generates (evidence: `README.md`)
- Tool user → Three-snapshot diff: runs (evidence: `README.md`)
- SNA snapshot → Three-snapshot diff: compares (evidence: `README.md`)
- Three-snapshot diff → BAT patch: generates (evidence: `README.md`)
- Tool user → Byte editor: runs (evidence: `README.md`)
- Byte editor → SNA snapshot: sets byte (evidence: `README.md`)
