Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions docs/dbg/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
layout: default
title: "Zero.DBG User Guide"
---

# Zero.DBG User Guide

[Documentation library](../index.md) · [Zero Assembly book](../zasm/index.md)

**Planned companion book.** This page reserves a home and section structure for
future chapters. The outline is documentation work to come, not a promise that
every named feature is implemented. Use the current guides below today.

## Planned sections

### Section 1 — Getting Started

Chapter placeholders: Supported hosts and targets, setup, and a first session.

### Section 2 — Controlling Execution

Chapter placeholders: Breakpoints, continue, pause, stepping, and stop.

### Section 3 — Inspecting State

Chapter placeholders: Registers today; further inspection features as implemented.

### Section 4 — Source Maps and Backends

Chapter placeholders: Map format, session contract, and Windows PE engine.

### Section 5 — Troubleshooting and Development

Chapter placeholders: Unbound breakpoints, diagnostics, testing, and extension points.

## Available documentation

- [Current walkthrough](../zasm/zasm-05-03-zero-debugger.md)
- [Existing debugger guide](../debugger/index.md)
- [Architecture](../debugger/architecture.md)
- [Windows PE engine](../debugger/winpe.md)
- [Testing](../debugger/testing.md)
41 changes: 41 additions & 0 deletions docs/ide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
layout: default
title: "Zero.IDE User Guide"
---

# Zero.IDE User Guide

[Documentation library](../index.md) · [Zero Assembly book](../zasm/index.md)

**Planned companion book.** This page reserves a home and section structure for
future chapters. The outline is documentation work to come, not a promise that
every named feature is implemented. Use the current guides below today.

## Planned sections

### Section 1 — Getting Started

Chapter placeholders: Installation, configuration, folders, and a first source file.

### Section 2 — Editing

Chapter placeholders: Documents, shortcuts, appearance, indentation, and cleanup.

### Section 3 — Building and Running

Chapter placeholders: Compiler selection, configurations, outputs, and diagnostics.

### Section 4 — Debugging

Chapter placeholders: Breakpoints, stepping, registers, and session controls.

### Section 5 — Reference and Troubleshooting

Chapter placeholders: Settings, updates, workflows, and failures.

## Available documentation

- [Current installation chapter](../zasm/zasm-01-03-installing-zero-ide.md)
- [Current first-project chapter](../zasm/zasm-01-04-using-zero-ide-my-first-project.md)
- [Settings and build notes](../building.md)
- [Execution architecture](../ide-execution.md)
15 changes: 14 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,27 @@ define data, share headers, call Windows DLL functions, or use Linux syscalls.
[Debugger](debugger/index.md) ·
[Source code](https://github.com/SuessLabs/ZeroCompiler)

## Documentation Library

Start with the chapter-based [Zero Assembly Programmers Guide](zasm/index.md).
It includes a first program, fundamentals, functions, a complete Notepad project,
compiler/debugger usage, architecture, and mnemonic/ASCII appendices.

| Book | Status |
| --- | --- |
| [Zero Assembly Programmers Guide](zasm/index.md) | Main learning guide |
| [Zero and Zero.CLI Guide](zero/index.md) | Companion book placeholder |
| [Zero.IDE User Guide](ide/index.md) | Companion book placeholder |
| [Zero.DBG User Guide](dbg/index.md) | Companion book placeholder; existing debugger docs retained |

## About

The Zero programming language and compiler project (_AKA: Null Compiler_). **Zero** is a simple, fast, and efficient programming language for the x86-64 architecture.

The compiler generates Windows x86 PE32 console executables (including programs
that create Windows GUI controls) and static Linux x86-64 ELF64 executables using
syscalls. Shared-library ELF linking, DLL output, additional architectures, macOS,
and STM32 remain future work. See [Linux x86-64 support](docs/linux64.md).
and STM32 remain future work. See [Linux x86-64 support](linux64.md).

## Zero Language Suite

Expand Down
2 changes: 2 additions & 0 deletions docs/zasm/ZASM-Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ title: ZASM Basic Examples

# ZASM Basic Examples

For a chapter-based learning path, read the [Zero Assembly Programmers Guide](index.md).

[Documentation home](../index.md) · [Language reference](ZASM-Reference.md) ·
[Mnemonic support](ZASM-Mnemonics.md)

Expand Down
2 changes: 2 additions & 0 deletions docs/zasm/ZASM-Intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ title: Zero Assembly Overview

# Zero Assembly Overview

For a chapter-based learning path, read the [Zero Assembly Programmers Guide](index.md).

[Documentation home](../index.md) · [Full language reference](ZASM-Reference.md) ·
[Basic examples](ZASM-Examples.md) · [Mnemonic support](ZASM-Mnemonics.md)

Expand Down
2 changes: 2 additions & 0 deletions docs/zasm/ZASM-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ title: ZASM Language Reference

# ZASM Language Reference

For a chapter-based learning path, read the [Zero Assembly Programmers Guide](index.md).

[Documentation home](../index.md) · [Complete examples](ZASM-Examples.md) ·
[Include files](ZASM-Include-Files.md) · [Mnemonic support](ZASM-Mnemonics.md)

Expand Down
105 changes: 105 additions & 0 deletions docs/zasm/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
layout: default
title: Zero Assembly Programmers Guide
---

# Zero Assembly Programmer's Guide

[Documentation library](../index.md) · [Start reading](zasm-01-01-what-is-zero-assembly.md)

Learn Zero Assembly from your first instruction to a small Windows editing
application. Read in order or revisit individual topics through the contents.
Every chapter links to its neighbors and back to this page.

## How to use this book

The main path uses Windows x86 on a Windows x64 computer. Linux x64 examples
are labeled separately. Fragments require surrounding code; chapters explicitly
identify complete programs. Commands assume the stated working directory and
compiler layout.

Current compiler limits appear beside the affected lessons. Structure declarations,
full instruction-set coverage, and advanced Notepad features are not implied by
a chapter title. The Notepad project provides complete source at each stage,
ending with a resizable editor with Open, Save, Save As, Close, and
unsaved-change handling.

Sections are consecutive in reading order: Notepad is Section 4, Compiler and
Debugging is Section 5, and Architecture is Section 6. Section 7 holds the two
appendices. Filenames follow `zasm-{section}-{chapter}-{title}.md`, using two-digit
numbers and lowercase, hyphenated titles. For example,
`zasm-02-01-moving-numbers.md` is Chapter 2.1.

## Contents

### Section 1 — Intro

1. [What Is Zero Assembly?](zasm-01-01-what-is-zero-assembly.md)
2. [Why Learn Assembly Today?](zasm-01-02-why-learn-assembly-today.md)
3. [Installing Zero.IDE](zasm-01-03-installing-zero-ide.md)
4. [Using Zero.IDE — My First Project](zasm-01-04-using-zero-ide-my-first-project.md)
5. [Hello, Zero Assembly](zasm-01-05-hello-zero-assembly.md)
6. [Zero Assembly Keywords and Directives](zasm-01-06-keywords-and-directives.md)

### Section 2 — Basics

1. [Moving Numbers](zasm-02-01-moving-numbers.md)
2. [Performing Jumps](zasm-02-02-performing-jumps.md)
3. [Storing Data and Printing](zasm-02-03-storing-data-and-printing.md)
4. [Boolean Algebra](zasm-02-04-boolean-algebra.md)
5. [Basic Variables](zasm-02-05-basic-variables.md)

### Section 3 — Level-Up Learning

1. [Calling External Library Functions](zasm-03-01-importing-and-calling-external-library.md)
2. [Creating Structs](zasm-03-02-creating-structs.md)
3. [Working with Strings](zasm-03-03-working-with-strings.md)
4. [Organizing Your System](zasm-03-04-organizing-your-system.md)
5. [Arithmetic Operations](zasm-03-05-arithmetic-operations.md)
6. [Performing Bit Manipulations](zasm-03-06-performing-bit-manipulations.md)
7. [Creating Functions](zasm-03-07-creating-functions.md)

### Section 4 — Creating a Notepad Project

1. [Notepad Project — Overview and Setup](zasm-04-01-notepad-project-setup.md)
2. [Notepad Project — Create the Window](zasm-04-02-notepad-create-the-window.md)
3. [Notepad Project — Add the Text Editor](zasm-04-03-notepad-add-the-text-editor.md)
4. [Notepad Project — Open, Save, Save As, and Close](zasm-04-04-notepad-open-and-save-files.md)
5. [Notepad Project — Test and Extend](zasm-04-05-notepad-testing-and-next-steps.md)

### Section 5 — Compiler and Debugging

1. [Zero Compiler (Zero.CLI)](zasm-05-01-zero-cli-compiler.md)
2. [Compiler Switches](zasm-05-02-compiler-switches.md)
3. [Zero Debugger (Zero.DBG)](zasm-05-03-zero-debugger.md)

### Section 6 — Architecture

1. [The x86 Instruction Set](zasm-06-01-x86-instruction-set.md)
2. [The x64 Instruction Set](zasm-06-02-x64-instruction-set.md)
3. [What Is Windows PE?](zasm-06-03-what-is-windows-pe.md)
4. [What Is ELF?](zasm-06-04-what-is-elf.md)
5. [What Is ARM?](zasm-06-05-what-is-arm.md)

### Appendices

1. [Appendix I — Mnemonic Lookup](zasm-07-01-mnemonic-lookup.md)
2. [Appendix II — ASCII Character Set](zasm-07-02-ascii-character-set.md)

## Reference shelf

Existing reference filenames remain intact for bookmarks and external links.
Use the book for learning and these pages for detailed lookup:

- [Language reference](ZASM-Reference.md): syntax, operands, imports, and limitations.
- [Mnemonic inventory](ZASM-Mnemonics.md): implemented and missing forms by target.
- [Include files](ZASM-Include-Files.md): header loading and search rules.
- [Complete examples](ZASM-Examples.md) and [assembly overview](ZASM-Intro.md).
- [Linux x64](../linux64.md) and [Windows headers](../windows-headers.md).
- [Feature roadmap](ZASM-Coming-Soon.md) and [syntax proposals](ZASM-vNext-Sandbox.md).

## Companion books

- [Zero and Zero.CLI](../zero/index.md) — planned language and compiler guide.
- [Zero.IDE](../ide/index.md) — planned IDE user guide.
- [Zero.DBG](../dbg/index.md) — planned debugger user guide; existing technical docs remain available.
37 changes: 37 additions & 0 deletions docs/zasm/zasm-01-01-what-is-zero-assembly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
layout: default
title: "What Is Zero Assembly?"
---

# What Is Zero Assembly?

Section 1 — Intro · Chapter 1.1

[Library](../index.md) · [Contents](index.md) · [Next](zasm-01-02-why-learn-assembly-today.md)

Zero Assembly (ZASM) is the assembly language accepted by the Zero compiler.
You describe instructions, data, and operating-system calls in a text file;
Zero turns them into a native executable.

```asm
mov eax, 42
add eax, 8
```

This fragment puts 42 in EAX, then adds 8. A register is a small storage location
in the processor. The destination comes first: `add eax, 8` changes EAX.

ZASM currently targets Windows x86 PE32 and static Linux x64 ELF64. Most lessons
use **Windows x86**, including the GUI project. Linux examples are labeled.
A Windows x64 compiler executable does not mean it produces Windows x64 programs.

Source files use `.zasm`; shared headers use `.zh`. The higher-level Zero
language uses `.zsrc` and remains under redesign. Future features are labeled
where they arise.

> **Checkpoint:** Explain the difference between source text, a compiler, and an
> executable. The [language reference](ZASM-Reference.md) supplies exact operand rules.

---

[Library](../index.md) · [Contents](index.md) · [Next](zasm-01-02-why-learn-assembly-today.md)
33 changes: 33 additions & 0 deletions docs/zasm/zasm-01-02-why-learn-assembly-today.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
layout: default
title: "Why Learn Assembly Today?"
---

# Why Learn Assembly Today?

Section 1 — Intro · Chapter 1.2

[Previous](zasm-01-01-what-is-zero-assembly.md) · [Contents](index.md) · [Next](zasm-01-03-installing-zero-ide.md)

Assembly makes the work of a program visible: values move through registers,
branches choose the next instruction, and calls enter another routine or the
operating system. These steps help you read debugger output and understand
code generated by higher-level languages.

Begin with a small goal: follow one value from input to output. You do not need
to memorize instruction encodings before writing your first program. Here you
will print text, manipulate numbers, and build a small Windows editor.

Assembly makes responsibilities explicit. A buffer has a capacity; a pointer
has an address; a called function expects arguments in a particular layout.
The compiler cannot infer all of these contracts for you.

Keep three questions beside each example: What value changes? Where is it
stored? Who owns the storage? They become useful when stepping through calls.

> **Exercise:** Identify an operation in a familiar application that needs
> arithmetic, one that needs a branch, and one that asks the OS for a service.

---

[Previous](zasm-01-01-what-is-zero-assembly.md) · [Contents](index.md) · [Next](zasm-01-03-installing-zero-ide.md)
43 changes: 43 additions & 0 deletions docs/zasm/zasm-01-03-installing-zero-ide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: default
title: "Installing Zero.IDE"
---

# Installing Zero.IDE

Section 1 — Intro · Chapter 1.3

[Previous](zasm-01-02-why-learn-assembly-today.md) · [Contents](index.md) · [Next](zasm-01-04-using-zero-ide-my-first-project.md)

Use a Windows x64 computer for the main learning path and native debugger.
The IDE and compiler have independent versions; retain a compatible pair.

1. Open the release downloads from the
[documentation home](../index.md#download-and-install).
2. If the release provides a Windows x64 **Zero.IDE setup** asset, download and
run it. IDE setup includes the CLI installer and uses a shared install root.
3. Launch `Zero.Ide.exe` from the installed `ide` directory or its launcher.
4. Open **Tools > Options > Compiler**. The IDE discovers the sibling
`bin/zero.exe` for new or blank settings; select it explicitly if necessary.
5. Save a new `.zasm` file in a writable folder outside Program Files.

```text
Zero/
bin/zero.exe
ide/Zero.Ide.exe
include/windows/
samples/
docs/
```

A portable CLI ZIP is useful for terminal lessons. Keep its `include` directory
beside `zero.exe`. If a release has no IDE installer, build the IDE using the
[build instructions](../building.md); do not expect the compiler ZIP to contain it.

See the [installer guide](../../installer/README.md) for packaging and other hosts.

> **Checkpoint:** Confirm the selected compiler displays `--help` in a terminal.

---

[Previous](zasm-01-02-why-learn-assembly-today.md) · [Contents](index.md) · [Next](zasm-01-04-using-zero-ide-my-first-project.md)
Loading