; along with avrcpm. If not, see <http://www.gnu.org/licenses/>.
;
; $Id$
-;\r
-\r
-#ifndef RAMDSK_SUPPORT\r
- #define RAMDSK_SUPPORT 0 \r
-#endif\r
-\r
-#if RAMDSK_SUPPORT\r
-\r
+;
+
+#ifndef RAMDSK_SUPPORT
+ #define RAMDSK_SUPPORT 0
+#endif
+
+#if RAMDSK_SUPPORT
+
;-------------------------------------- Defines for RAMDISK Structures
-\r
+
;----------------------------------------------- Start of Data Segment
- .dseg\r
-\r
-rdskbuf: .byte 128 ; Buffer for RAM-Disk interaktions\r
-\r
+ .dseg
+
+rdskbuf: .byte 128 ; Buffer for RAM-Disk interaktions
+
; ---------------------------------------------- Start of Code Segment
- .cseg\r
+ .cseg
-; ====================================================================\r
+; ====================================================================
; Function: Calculate an sets the adress of Sector within the RAMDISK
-; ====================================================================\r
-; Parameters\r
-; --------------------------------------------------------------------\r
-; Registers : none\r
-; Variables : [r] seeksec Sector to read\r
-; [r] seektrk Track to read\r
-; [w] temp3 Number of Bytes per Sector (128) \r
-; --------------------------------------------------------------------\r
-; Description:\r
-; ====================================================================\r
+; ====================================================================
+; Parameters
+; --------------------------------------------------------------------
+; Registers : none
+; Variables : [r] seeksec Sector to read
+; [r] seektrk Track to read
+; [w] temp3 Number of Bytes per Sector (128)
+; --------------------------------------------------------------------
+; Description:
+; ====================================================================
rdsk_adr:
.endif
ret
-; ====================================================================\r
+; ====================================================================
; Function: Does a read opperation on a RAMDISK
-; ====================================================================\r
-; Parameters\r
-; --------------------------------------------------------------------\r
-; Registers : none\r
-; Variables : [r] seeksec Sector to read\r
-; [r] seektrk Track to read\r
-; [r] flags RW operation Flags\r
-; [w] erflag Error Status of the operation\r
-; --------------------------------------------------------------------\r
-; Description:\r
-; ====================================================================\r
+; ====================================================================
+; Parameters
+; --------------------------------------------------------------------
+; Registers : none
+; Variables : [r] seeksec Sector to read
+; [r] seektrk Track to read
+; [r] flags RW operation Flags
+; [w] erflag Error Status of the operation
+; --------------------------------------------------------------------
+; Description:
+; ====================================================================
rdsk_read:
-\r
+
.if DISK_DEBUG > 1
printnewline
printstring "rd-adr: "
.endif
rcall rdsk_adr
-\r
+
rdsk_rdl:
DRAM_SETADDR xl, ~(1<<ram_ras),0, ~((1<<ram_oe)), (1<<ram_a8)
cbi P_CAS,ram_cas
brne rdsk_rdstl
ret
-; ====================================================================\r
+; ====================================================================
; Function: Does a write opperation on a RAMDISK
-; ====================================================================\r
-; Parameters\r
-; --------------------------------------------------------------------\r
-; Registers : none\r
-; Variables : [r] seeksec Sector to read\r
-; [r] seektrk Track to read\r
-; [r] flags RW operation Flags\r
-; [w] erflag Error Status of the operation\r
-; --------------------------------------------------------------------\r
-; Description:\r
-; ====================================================================\r
+; ====================================================================
+; Parameters
+; --------------------------------------------------------------------
+; Registers : none
+; Variables : [r] seeksec Sector to read
+; [r] seektrk Track to read
+; [r] flags RW operation Flags
+; [w] erflag Error Status of the operation
+; --------------------------------------------------------------------
+; Description:
+; ====================================================================
rdsk_write:
.if DISK_DEBUG > 1
ldi temp,~RAM_DQ_MASK | (1<<ram_w) | (1<<ram_cas)
out DDRC,temp
out PORTC,temp
- ret\r
-\r
-\r
-rdsk_add_partition:\r
- ret\r
-\r
-
-#else\r
-\r
-rdsk_read:\r
- ret\r
-rdsk_write:\r
- ret\r
-rdsk_add_partition:\r
- ret\r
-\r
-#endif\r
+ ret
+
+
+rdsk_add_partition:
+ ret
+
+
+#else
+
+rdsk_read:
+ ret
+rdsk_write:
+ ret
+rdsk_add_partition:
+ ret
+
+#endif