35 lines
519 B
Plaintext
35 lines
519 B
Plaintext
include print "../resources/dsa/print.dsa"
|
|
include fib "../resources/dsa/fib.dsa"
|
|
|
|
dw stack: 0x10000
|
|
db string: "Hello world! This is about to be dependency hell..."
|
|
db string2: "And extremely jank. Ridiculously, unfathomably jank."
|
|
|
|
init:
|
|
ldw stack, bpr
|
|
mov bpr, spr
|
|
|
|
start:
|
|
lwi string, rg1
|
|
|
|
// push variables
|
|
push rg1 // string address.
|
|
push pcx // return address.
|
|
|
|
// call
|
|
jmp print::print
|
|
|
|
|
|
lli 25, rg0
|
|
push rg0
|
|
push pcx
|
|
jmp fib::fib_n
|
|
|
|
|
|
lwi string2, rg1
|
|
push rg1
|
|
push pcx
|
|
|
|
jmp print::print
|
|
|
|
hlt |