mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
allow override of write address
This commit is contained in:
parent
3ca6a4bdbc
commit
9b6a21e2ea
@ -132,6 +132,8 @@ SaveSmallFile
|
||||
;------------------------------------------------------------------------------
|
||||
traverse
|
||||
+LDAY gRootDirectory
|
||||
sta (reloc + unrhddblocklo - unrelochdd) + 1
|
||||
sty (reloc + unrhddblockhi - unrelochdd) + 1
|
||||
sta @myreadblock+1
|
||||
sty @myreadblock+3 ; reset 'root' directory (saved at program start)
|
||||
|
||||
|
@ -2200,6 +2200,9 @@ hddfoundname iny
|
||||
;cache AUX_TYPE (load offset for binary files)
|
||||
|
||||
!if override_adr = 0 {
|
||||
lda reqcmd
|
||||
lsr
|
||||
bne + ;cmdwrite
|
||||
ldy #AUX_TYPE
|
||||
lda (bloklo), y
|
||||
!if (allow_subdir + allow_saplings + allow_trees + (aligned_read xor 1)) > 0 {
|
||||
@ -2209,7 +2212,8 @@ hddfoundname iny
|
||||
lda (bloklo), y
|
||||
sta ldrhi
|
||||
sta ldrhi2
|
||||
} else { ;allow_subdir = 0 and allow_saplings = 0 and allow_trees = 0 and aligned_read = 1
|
||||
+
|
||||
} else { ;allow_subdir = 0 and allow_saplings = 0 and allow_trees = 0 and aligned_read = 1
|
||||
pha
|
||||
iny
|
||||
lda (bloklo), y
|
||||
|
Loading…
Reference in New Issue
Block a user