| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Compiler.ASM.Assembler
Synopsis
- assemble :: [PsInstruction] -> Either Text ByteString
Documentation
assemble :: [PsInstruction] -> Either Text ByteString Source #
Main assembly function.
@details 1. Resolves labels (PsInstruction -> Instruction) using ResolveLabels module. 2. Validates jump offsets (bounds checking). 3. Serializes instructions to ByteString with Header.