rewrote assembler backend to support custom executable format (DSE) and also refactored (moving crates around)
This commit is contained in:
@@ -37,11 +37,11 @@ db program: "++++++++++++++++++++++++++++++++++++++++++++
|
||||
db error: "Invalid Instruction!"
|
||||
dh counter: 0xFF
|
||||
dw stack: 0x10000
|
||||
dw input: 0x30000
|
||||
dw input_addr: 0x30000
|
||||
resb data: 1024
|
||||
|
||||
// set up a stack so we can call functions
|
||||
_init_stack:
|
||||
_init:
|
||||
ldw stack, bpr
|
||||
mov bpr, spr
|
||||
|
||||
@@ -162,7 +162,7 @@ output:
|
||||
// ------------------------------------------
|
||||
// read a byte into the current cell
|
||||
input:
|
||||
ldw input, rg2
|
||||
ldw input_addr, rg2
|
||||
jmp loop_end
|
||||
|
||||
// ------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user