Started rethinking how this machine should behave. Updated and refactoring some things with a few new ideas.

This commit is contained in:
2023-02-23 22:22:07 -06:00
parent 9a602824b6
commit 1b246e90bc
8 changed files with 68 additions and 193 deletions
+3
View File
@@ -0,0 +1,3 @@
some_stub:
pop r8
jmp [r8] ;return to the calling code.
+6 -2
View File
@@ -1,9 +1,11 @@
.include "/another_test.asm"
.db video_start 0xF37F
.db msg "Hello, world!", 0
.db NOTERM "No terminating byte here"
.db null_byte 0
load r1, [msg] ; Because the lod* instructions can't load an address
load r1, msg ; Because the lod* instructions can't load an address
; from anything but a register, this becomes laa r1, [msg]
;Routine: string_length
@@ -26,4 +28,6 @@ start:
jmp start
end:
ret
pop r8 ;pop the return address from the stack into register 8
jmp [r8] ;jump to that address