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,23 +1,27 @@
; Stefan Haubenthal, 2012-05-06
; based on code by Twilighte
; Based on code by Twilighte.
; 2012-05-06, Stefan Haubenthal
; 2013-07-22, Greg King
;
; void __fastcall__ atmos_save(const char* name, const void* start, const void* end);
.export _atmos_save
.import popax, store_filename
.include "atmos.inc"
.proc _atmos_save
sei
sta $02ab ; file end lo
stx $02ac ; file end hi
sta FILEEND
stx FILEEND+1
jsr popax
sta $02a9 ; file start lo
stx $02aa ; file start hi
sta FILESTART
stx FILESTART+1
jsr popax
jsr store_filename
lda #00
sta $02ad
sta AUTORUN
jsr csave_bit
cli
rts