X-Git-Url: http://cloudbase.mooo.com/gitweb/avrcpm.git/blobdiff_plain/6421941553d20df7608a6e1fe1d10aed2845b350..637689dec534184006a1d30b8b49f998062442ce:/avrcpm/avr/dsk_ram.asm
diff --git a/avrcpm/avr/dsk_ram.asm b/avrcpm/avr/dsk_ram.asm
index 4216506..2edda4f 100644
--- a/avrcpm/avr/dsk_ram.asm
+++ b/avrcpm/avr/dsk_ram.asm
@@ -18,37 +18,37 @@
; along with avrcpm. If not, see .
;
; $Id$
-;
-
-#ifndef RAMDSK_SUPPORT
- #define RAMDSK_SUPPORT 0
-#endif
-
-#if RAMDSK_SUPPORT
-
+;
+
+#ifndef RAMDSK_SUPPORT
+ #define RAMDSK_SUPPORT 0
+#endif
+
+#if RAMDSK_SUPPORT
+
;-------------------------------------- Defines for RAMDISK Structures
-
+
;----------------------------------------------- Start of Data Segment
- .dseg
-
-rdskbuf: .byte 128 ; Buffer for RAM-Disk interaktions
-
+ .dseg
+
+rdskbuf: .byte 128 ; Buffer for RAM-Disk interaktions
+
; ---------------------------------------------- Start of Code Segment
- .cseg
+ .cseg
-; ====================================================================
+; ====================================================================
; Function: Calculate an sets the adress of Sector within the RAMDISK
-; ====================================================================
-; Parameters
-; --------------------------------------------------------------------
-; Registers : none
-; Variables : [r] seeksec Sector to read
-; [r] seektrk Track to read
-; [w] temp3 Number of Bytes per Sector (128)
-; --------------------------------------------------------------------
-; Description:
-; ====================================================================
+; ====================================================================
+; 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:
@@ -79,29 +79,29 @@ rdsk_adr:
.endif
ret
-; ====================================================================
+; ====================================================================
; Function: Does a read opperation on a RAMDISK
-; ====================================================================
-; 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:
-; ====================================================================
+; ====================================================================
+; 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:
-
+
.if DISK_DEBUG > 1
printnewline
printstring "rd-adr: "
.endif
rcall rdsk_adr
-
+
rdsk_rdl:
DRAM_SETADDR xl, ~(1< 1
@@ -195,20 +195,20 @@ rdsk_wrl:
ldi temp,~RAM_DQ_MASK | (1<