Chapter 2: Assembly¶
Assembly controls SiliconCraft's virtual CPU directly. Programs use registers A–D, linear RAM, stack operations, jumps, interrupts, and the instructions enabled by your chip's architecture.
- Syntax and projects: literals, labels, addressing, static data, includes, and compilation.
- Instruction reference: CPU state and instruction operands.
- Peripherals: mailbox status, numeric device methods, strings, and serial addresses.
- Networking: requests, buffers, sockets, HTTP, TLS, WebSocket, and listeners.
- Create and airship peripherals: sensor readings and named Redstone Link channels.
- Examples: CPU programs plus runnable peripheral and networking sources.
Use the Assembly Writer for .asm or .s files. Use the Project Compiler for projects with main.asm and includes. Burn the compiled .o program to ROM or storage with the Programmer. See Getting Started for the hardware workflow.