std y+4,_0
std y+5,_0 ;max CP/M 2.2 disk size
std y+6,temp ;
-; std y+7,_0
-; std y+8,_0
+
+ ldi temp3,0
+ rcall dpb_imgdata_get
+
rjmp mgr_pend
; Search for valid Partitions and ImageFiles
cpi temp,PARTID_CPM
brne mgr_nextp
- rcall cpm_add_partition
-
+ rcall cpm_add_partition
inc temp3
sts ndisks,temp3
adiw y,PARTENTRY_SIZE
breq mgr_pend
mgr_nextp:
- adiw zl,16
+ adiw z,16
dec temp4
brne mgr_ploop
#endif
mgr_pend:
- lds temp,ndisks ;return # of "disks"
+ clr temp3
+mgr_imgd_lp:
+ lds temp,ndisks
+ cp temp3,temp
+ breq mgr_pend2
+ rcall dpb_imgdata_get
+ inc temp3
+ rjmp mgr_imgd_lp
+
+mgr_pend2:
+ lds temp,ndisks ;return # of "disks"
tst temp
ret