1 ; Various functions for the Interaction with the CPM Filesystem
3 ; Copyright (C) 2010 Frank Zoll
5 ; This file is part of avrcpm.
7 ; avrcpm is free software: you can redistribute it and/or modify it
8 ; under the terms of the GNU General Public License as published by
9 ; the Free Software Foundation, either version 3 of the License, or
10 ; (at your option) any later version.
12 ; avrcpm is distributed in the hope that it will be useful,
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ; GNU General Public License for more details.
17 ; You should have received a copy of the GNU General Public License
18 ; along with avrcpm. If not, see <http://www.gnu.org/licenses/>.
29 ldd temp ,z+PTAB_START+0 ; get startsector of partition
30 ldd temp2,z+PTAB_START+1
34 add xl,temp ; add offset to startsector
41 ; ====================================================================
42 ; Function: Add's a CP/M Partition to the Partition table
43 ; ====================================================================
45 ; --------------------------------------------------------------------
47 ; Variables : [r] seekdsk Number of Disk to Read
48 ; [r] seeksec Sector to read
49 ; [r] seektrk Track to read
50 ; --------------------------------------------------------------------
52 ; ====================================================================
60 ldd temp,z+PART_START+1
62 ldd temp,z+PART_START+2
64 ldd temp,z+PART_START+3
67 ldd temp,z+PART_SIZE+2
68 ldd temp2,z+PART_SIZE+3
69 or temp,temp2 ;part size larger than 65535 sectors?
74 ldd temp,z+PART_SIZE+1
85 #endif /* CPMDSK_SUPPORT */
87 ; vim:set ts=8 noet nowrap