adfba876d2
- setup new UI layout using tiling and an action/message based system for updating global state based on interactions with individual tiles and vice versa - added custom dialogs and UI helpers to create a more cohesive UI - added a disassembler widget (WIP) - added a documentation widget (WIP) - refactored backend halt/pause logic to fix bugs. - started emulator implementation documentation (to complement the ISA spec)
20 lines
300 B
Plaintext
20 lines
300 B
Plaintext
include print: "./print.dsa"
|
|
db msg: "hello world"
|
|
dw stack: 0x10000
|
|
_init:
|
|
ldw stack, bpr
|
|
mov bpr, spr
|
|
lwi 1000000, rg5
|
|
|
|
_loop:
|
|
call print::reset
|
|
lwi msg, rg0
|
|
push rg0
|
|
call print::print
|
|
pop zero
|
|
subi rg5, 1, rg5
|
|
igt rg5, zero, rg4
|
|
jnz rg4, _loop
|
|
|
|
hlt
|