Files
DSA/resources/serialtest.dsa
T
zxq5 27d38eaf89 mega refactor:
essentially completely reorganised the project.
previous contents of the dsa folder have now been split into emulator/ tooling/ and libraries/
libraries is for common functionality across crates, tooling is for core binaries needed for building and debugging DSA projects, including dsx client/server/build
emulator contains the dsa_emulator crate that implements the core DSA emulator, the dsa_gui crate that implements the graphical user interface for the emulator & all future tooling under a unified application, and finally the dsa_cli crate which will eventually provide lightweight wrapper for the core emulator, simply providing a tool for running DSA binaries without the overhead of a heavy GUI.
2026-08-01 01:28:11 +01:00

41 lines
604 B
Plaintext

include serial: "./serial.dsa"
include idt: "./idt.dsa"
include print: "./print.dsa"
dw stack: 0x10000
_init:
ldw stack, bpr
mov bpr, spr
call idt::setup_base
call idt::setup_io
call serial::reset
db hello: "Test message, hello world etc etc."
main:
//lwi hello, rg0
//push rg0
//call serial::print
//pop zero
// lwi hello, rg0
// push rg0
// call print::print
// pop zero
//lwi buff, rg0
//lwi 32, rg1
//push rg0
//push rg1
call serial::readline
lwi serial::SERIAL_BUFFER, rg0
push rg0
call serial::print
pop zero
call serial::reset
hlt
jmp main