vox-lang 0.3.6

A systems level compiler for Vox (sentence based code)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; core.asm - Core macros for English Compiler
; Always included - provides essential functionality

%ifdef SHARED_LIB
    ; Shared library mode: declare BSS as extern
    extern _last_error
%else
    ; Global error flag - set by runtime checks (bounds, syscalls, etc.)
    section .bss
        _last_error: resq 1      ; 0 = no error, non-zero = error code
%endif

section .text