Redesigning the way the Symbol's represent string declaration (the .db msg 'Hello World' type of declarations).
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user