# dpc5/arm-assembly-pac-man architecture

> Architecture diagram of the GitHub repository dpc5/arm-assembly-pac-man, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dpc5/arm-assembly-pac-man
- Repository: https://github.com/dpc5/arm-assembly-pac-man

## Overview

This repository is an ARM-assembly Pac-Man program targeting the TM4C123. The visible C entry point calls `lab7`; the likely game implementation files are `game.s` and `game_library.s`, but their contents were not sampled, so their responsibilities and interactions cannot be verified. The startup file defines the interrupt vector table and branches from reset into the Code Composer Studio C runtime. The graph therefore shows only that documented startup handoff and marks the apparent game-entry connection as unverified.

Main entry points: [`tm4c123gh6pm_startup_ccs.c`](https://github.com/dpc5/arm-assembly-pac-man/blob/main/tm4c123gh6pm_startup_ccs.c) (MCU startup), [`main.c`](https://github.com/dpc5/arm-assembly-pac-man/blob/main/main.c) (Application entry), [`game.s`](https://github.com/dpc5/arm-assembly-pac-man/blob/main/game.s) (Pac-Man game)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup"]
  node_startup_code["MCU startup"]
end

subgraph group_game["Game"]
  node_app_entry["Application entry<br/>[main.c]"]
  node_game_code["Pac-Man game<br/>[game.s]"]
  node_game_library["Game library<br/>[game_library.s]"]
end

node_c_runtime["CCS C runtime"]

node_startup_code -->|"branches to"| node_c_runtime
node_app_entry -.->|"calls lab7"| node_game_code

click node_startup_code "https://github.com/dpc5/arm-assembly-pac-man/blob/main/tm4c123gh6pm_startup_ccs.c"
click node_app_entry "https://github.com/dpc5/arm-assembly-pac-man/blob/main/main.c"
click node_game_code "https://github.com/dpc5/arm-assembly-pac-man/blob/main/game.s"
click node_game_library "https://github.com/dpc5/arm-assembly-pac-man/blob/main/game_library.s"

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_startup_code toneBlue
class node_app_entry,node_game_code,node_game_library toneAmber
class node_c_runtime toneIndigo
```

## Components

### Startup

- [MCU startup](https://github.com/dpc5/arm-assembly-pac-man/blob/main/tm4c123gh6pm_startup_ccs.c): `tm4c123gh6pm_startup_ccs.c`

### Game

- [Application entry](https://github.com/dpc5/arm-assembly-pac-man/blob/main/main.c): `main.c`
- [Pac-Man game](https://github.com/dpc5/arm-assembly-pac-man/blob/main/game.s): `game.s`
- [Game library](https://github.com/dpc5/arm-assembly-pac-man/blob/main/game_library.s): `game_library.s`

### Other components

- **CCS C runtime**

## Connections

- MCU startup → CCS C runtime: branches to (evidence: `tm4c123gh6pm_startup_ccs.c`)
- Application entry → Pac-Man game: calls lab7
