glados-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Compiler.ASM.Assembler

Synopsis

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.