Replaced number literals in source code with meaningful symbol names.

This commit is contained in:
Greg King
2013-07-26 03:33:54 -04:00
parent 3574f3a742
commit f02843f05d
9 changed files with 62 additions and 33 deletions

View File

@@ -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