volume -- nzones is the total number of blocks.

This commit is contained in:
Kelvin Sherlock 2015-08-26 09:11:25 -04:00
parent 9cfa444088
commit f73e1e20e1

View File

@ -162,23 +162,17 @@ do_block_size proc
endp endp
do_total_blocks proc do_total_blocks proc
; total blocks = 2 + imap_blocks + zmap_blocks + nzones. I think. ; total blocks = nzones.
; should this ask the driver?
with dp with dp
with fst_parms with fst_parms
phy ; save phy ; save
lda #2 ; boot block, super block.
clc
; pull from vcr?
ldy #vcr.super.nzones ldy #vcr.super.nzones
adc [my_vcr],y lda [my_vcr],y
ldy #vcr.super.imap_blocks
adc [my_vcr],y
ldy #vcr.super.zmap_blocks
adc [my_vcr],y
ply ply
sta [param_blk_ptr],y sta [param_blk_ptr],y