
// GENERATED BY DSX-BUILD
// Generated at: 2026-02-21 02:50:14
// Project name: example

// Imports
include print: "./lib/print.dsa"

// Globals & Reserved Memory
dw stack: 0x10000
db message: "Process Exited with code:"

// Entry Point
_init:
    ldw stack, bpr
    mov bpr, spr
    push zero
    call main
    call print::print_newline
    lwi message, rg0
    push rg0
    call print::print
    pop zero
    call print::print_hex_word
    pop zero
    hlt

main:
    push bpr
    mov spr, bpr

    // Your code goes here

    // Return zero
    stw zero, bpr, 8

    mov bpr, spr
    pop bpr
    return