Replaced number literals in source code with meaningful symbol names.
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
; Helper function
|
||||
|
||||
.export store_filename
|
||||
.importzp ptr1
|
||||
|
||||
.include "atmos.inc"
|
||||
|
||||
store_filename:
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
ldy #$0f ;store filename
|
||||
ldy #FNAME_LEN - 1 ; store filename
|
||||
: lda (ptr1),y
|
||||
sta $027f,y
|
||||
sta CFILE_NAME,y
|
||||
dey
|
||||
bpl :-
|
||||
rts
|
||||
|
||||
Reference in New Issue
Block a user