From 62726712c6e2d38bc74ef18d1f4c240e89d2b332 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 24 Aug 2015 22:05:05 -0400 Subject: [PATCH] volume -- suppport prodos 16 call (/ name) --- volume.aii | 164 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 96 insertions(+), 68 deletions(-) diff --git a/volume.aii b/volume.aii index 44ad6aa..3d6f952 100644 --- a/volume.aii +++ b/volume.aii @@ -17,7 +17,17 @@ import id_disk +my_dp record dp.__end +src ds.l 1 +dest ds.l 1 +length ds.w 1 + + IF *>=$d4 THEN + AERROR 'dp -- too large.' + ENDIF + + endr import do_file_sys_id import do_ignore @@ -38,7 +48,7 @@ volume procname export lda fst_parms.dev1_num ; if no device, find a volume by name... - beq by_name + beq no_dev jsr id_disk bcc got_it @@ -71,6 +81,21 @@ dup_0 got_it + ; init common volume name parameters here... + with my_dp + ldy #vcr.vname.length + lda [my_vcr],y + sta length + + lda #vcr.vname.text + clc + adc my_vcr + sta src + lda #0 + adc my_vcr+2 + sta src+2 + endwith + lda