This commit is contained in:
4am 2019-10-08 14:47:47 -04:00
parent 2d392ba566
commit a544cb9621
3 changed files with 24 additions and 28 deletions

View File

@ -88,6 +88,9 @@ ResetVector ; 6 bytes, copied to $100
!source "src/ui.credits.a" ; \__ execution falls through !source "src/ui.credits.a" ; \__ execution falls through
!source "src/ui.browse.mode.a" ; / !source "src/ui.browse.mode.a" ; /
!source "src/ui.attract.hgr.a" ; \__ execution falls through
!source "src/glue.font.a" ; /
!source "src/prodos.path.a" !source "src/prodos.path.a"
!source "src/ui.overlay.a" !source "src/ui.overlay.a"
!source "src/ui.offscreen.a" !source "src/ui.offscreen.a"
@ -95,19 +98,14 @@ ResetVector ; 6 bytes, copied to $100
!source "src/ui.attract.shr.a" !source "src/ui.attract.shr.a"
!source "src/ui.attract.gr.a" !source "src/ui.attract.gr.a"
!source "src/ui.attract.hgr.a" ; \__ execution falls through
!source "src/glue.font.a" ; /
!source "src/ui.cheats.a" !source "src/ui.cheats.a"
!source "src/glue.launch.a" !source "src/glue.launch.a"
!source "src/okvs.a" !source "src/okvs.a"
!source "src/wait.a" !source "src/wait.a"
!source "src/textrank.a" !source "src/textrank.a"
!source "src/parse.common.a" !source "src/parse.common.a"
!source "src/parse.prefs.a"
!source "src/parse.prefs.a" ; \__ execution falls through !source "src/glue.prorwts2.a"
!source "src/glue.prorwts2.a" ; /
!source "src/ui.common.a" !source "src/ui.common.a"
; add new files above here so ui.wait stays last ; add new files above here so ui.wait stays last

View File

@ -4,7 +4,6 @@
; ProRWTS2 glue functions ; ProRWTS2 glue functions
; ;
; Public functions ; Public functions
; - SaveSmallFile
; - LoadFile ; - LoadFile
; - LoadDHRFile ; - LoadDHRFile
; ;
@ -33,26 +32,6 @@
; 'FX/RIPPLE' points to a file named 'RIPPLE' in a directory named 'FX' in the ; 'FX/RIPPLE' points to a file named 'RIPPLE' in a directory named 'FX' in the
; PROGRAM ROOT DIRECTORY. ; PROGRAM ROOT DIRECTORY.
; /!\ execution falls through from parse.perfs/pref_set
;------------------------------------------------------------------------------
; SaveSmallFile
; Save a file into memory all at once, using ProRWTS2.
; /!\ Only first block (512 bytes) is written. Keep those files small. /!\
; /!\ All 512 bytes are written to disk. Clear buffer before calling. /!\
;
; supports paths, see note
;
; in: A/Y points to data buffer
; gPathname contains path+filename to write
; out: all flags clobbered
; all registers clobbered
;------------------------------------------------------------------------------
SaveSmallFile
+STAY ldrlo ; set data buffer address for ProRWTS2
jsr SwitchToBank2
jsr SaveSmallFileInternal
jmp SwitchToBank1
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; LoadFile ; LoadFile
; Load a file into memory all at once, using ProRWTS2 ; Load a file into memory all at once, using ProRWTS2

View File

@ -6,6 +6,7 @@
; Public functions ; Public functions
; - pref_get ; - pref_get
; - pref_set ; - pref_set
; - SaveSmallFile
; ;
; Public constants (all length-prefixed strings) ; Public constants (all length-prefixed strings)
; - kNextAttract ; - kNextAttract
@ -205,3 +206,21 @@ pref_set
jsr SetPath jsr SetPath
+LDAY kGlobalPrefsBuffer +LDAY kGlobalPrefsBuffer
; /!\ execution falls through here to glue.prorwts/SaveSmallFile ; /!\ execution falls through here to glue.prorwts/SaveSmallFile
;------------------------------------------------------------------------------
; SaveSmallFile
; Save a file into memory all at once, using ProRWTS2.
; /!\ Only first block (512 bytes) is written. Keep those files small. /!\
; /!\ All 512 bytes are written to disk. Clear buffer before calling. /!\
;
; supports paths, see note
;
; in: A/Y points to data buffer
; gPathname contains path+filename to write
; out: all flags clobbered
; all registers clobbered
;------------------------------------------------------------------------------
SaveSmallFile
+STAY ldrlo ; set data buffer address for ProRWTS2
jsr SwitchToBank2
jsr SaveSmallFileInternal
jmp SwitchToBank1