mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-07 21:30:39 +00:00
riven: got hd loading working
will forever be hard keeping block (512 byte) and sector (256 byte) sizes separate
This commit is contained in:
parent
690fc0d303
commit
702bde56d9
@ -84,8 +84,14 @@ final movie roto procedure:
|
|||||||
scale to 80x48
|
scale to 80x48
|
||||||
save
|
save
|
||||||
|
|
||||||
|
;================================
|
||||||
|
; NOTE: for hard-disk image we use 512-byte blocks (not 256-byte sectors)
|
||||||
|
; so be careful using odd-numbered block lengths!
|
||||||
|
; This is mostly an issue for the $7F long almost-32k files
|
||||||
|
; and the 1-block level info files, otherwise we mostly are even
|
||||||
|
|
||||||
Disk00 Map (disk has 35 tracks, each 4k in size)
|
Disk00 Map (disk has 35 tracks, each 4k in size)
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$~~~~~~~
|
||||||
T 0 = Qboot
|
T 0 = Qboot
|
||||||
T 0.5 = TITLE 1618 bytes 8S = 0T8S (2048) 400B free
|
T 0.5 = TITLE 1618 bytes 8S = 0T8S (2048) 400B free
|
||||||
T 1 = QLOAD 2346 bytes 16S = 1T00S (4096) 2k free
|
T 1 = QLOAD 2346 bytes 16S = 1T00S (4096) 2k free
|
||||||
|
@ -90,6 +90,11 @@ load_file:
|
|||||||
|
|
||||||
|
|
||||||
lda LENGTH_ARRAY,X
|
lda LENGTH_ARRAY,X
|
||||||
|
clc
|
||||||
|
adc #1
|
||||||
|
lsr ; important! blocks=sectors/2
|
||||||
|
; need to round up if it was odd
|
||||||
|
; careful: this could over-write if not careful
|
||||||
sta COUNT
|
sta COUNT
|
||||||
|
|
||||||
jsr seekread
|
jsr seekread
|
||||||
|
Loading…
x
Reference in New Issue
Block a user