Redesigning the way the Symbol's represent string declaration (the .db msg 'Hello World' type of declarations).

This commit is contained in:
2022-10-06 21:33:29 -05:00
parent f38da9cc74
commit d3d2b06dbd
4 changed files with 101 additions and 12 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
.db video_start 0xF37F
.db msg "Hello, world!", 0
load r1, [msg] ; Because the lod* instructions can't load an address
; from anything but a register, this becomes laa r1, [msg]
load r1, msg ; Because the lod* instructions can't load an address
; from anything but a register, this becomes laa r1, msg
load r8, [15]
;Routine: string_length
;In: String address in r1
;Out: Length in R2