# guilhermesob/assembly architecture

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

- Interactive diagram: https://gitdiagram.com/guilhermesob/assembly
- Repository: https://github.com/guilhermesob/assembly

## Overview

##### Project Type and Purpose
- This is an educational repository containing five separate Assembly language examples
– CRUD.s (basic Create/Read/Update/Delete operations)
– Calculator.s (arithmetic routines)
– Copiler.s (likely a small demonstration of parsing or code-generation)
– Intnum.s (integer-number operations)
– Movielismanagement.s (movie list management routines)
- Each file is assembled into a stand-alone executable for concept demonstration.

##### File Structure
- Top-level files:
– Assembly source files (.s) – each one is an independent module.
– README.md – project description.
- No nested directories or external dependencies.
- Build occurs via a standard assembler (e.g., GNU as or MASM) and linker.

##### Main Components
a. Source Layer
b. Toolchain Layer
– Assembler (translates .s → .o/object files)
– Linker (combines .o → executable)
c. Run-Time Layer
– Executable modules (one per source file)
– CPU/Memory environment
– (Optional) Input/Output interfaces (console or file I/O if used in a demo)

##### Architectural Patterns
- Linear build pipeline: Assemble → Link → Execute.
- Modular design: each source file is a self-contained module.
- No complex layering beyond toolchain and runtime.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Assembly Sources"
        CRUD["CRUD.s"]:::sources
        Calculator["Calculator.s"]:::sources
        Copiler["Copiler.s"]:::sources
        Intnum["Intnum.s"]:::sources
        Movielismanagement["Movielismanagement.s"]:::sources
        README["README.md"]:::env
    end

    Assembler["Assembler"]:::build
    ObjectFiles["Object Files (.o)"]:::build
    Linker["Linker"]:::build

    subgraph "Executables"
        CRUDExe["CRUD.exe"]:::exec
        CalcExe["Calculator.exe"]:::exec
        CompExe["Copiler.exe"]:::exec
        IntnumExe["Intnum.exe"]:::exec
        MovieExe["Movielismanagement.exe"]:::exec
    end

    CPU["CPU/Memory"]:::env
    FS[(File System)]:::env

    CRUD --> Assembler
    Calculator --> Assembler
    Copiler --> Assembler
    Intnum --> Assembler
    Movielismanagement --> Assembler
    README -.-> Assembler

    Assembler --> ObjectFiles
    ObjectFiles --> Linker

    Linker --> CRUDExe
    Linker --> CalcExe
    Linker --> CompExe
    Linker --> IntnumExe
    Linker --> MovieExe

    CRUDExe --> CPU
    CalcExe --> CPU
    CompExe --> CPU
    IntnumExe --> CPU
    MovieExe --> CPU
    MovieExe --> FS

    click CRUD "https://github.com/guilhermesob/assembly/blob/main/./CRUD.s"
    click Calculator "https://github.com/guilhermesob/assembly/blob/main/./Calculator.s"
    click Copiler "https://github.com/guilhermesob/assembly/blob/main/./Copiler.s"
    click Intnum "https://github.com/guilhermesob/assembly/blob/main/./Intnum.s"
    click Movielismanagement "https://github.com/guilhermesob/assembly/blob/main/./Movielismanagement.s"
    click README "https://github.com/guilhermesob/assembly/blob/main/./README.md"

    classDef sources fill:#BBE1FA,stroke:#000
    classDef build fill:#A8E6A3,stroke:#000
    classDef exec fill:#FFC590,stroke:#000
    classDef env fill:#D3D3D3,stroke:#000
```
