]> git.sur5r.net Git - cc65/commitdiff
Moved the 'memory' files from 'geos-cbm' to 'geos-common' which are believed to work...
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 4 Feb 2012 14:53:09 +0000 (14:53 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 4 Feb 2012 14:53:09 +0000 (14:53 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5438 b7a2c559-68d2-44c3-8de9-860c34a00d81

25 files changed:
libsrc/geos-cbm/memory/Makefile
libsrc/geos-cbm/memory/clearram.s [deleted file]
libsrc/geos-cbm/memory/cmpfstring.s [deleted file]
libsrc/geos-cbm/memory/cmpstring.s [deleted file]
libsrc/geos-cbm/memory/copyfstring.s [deleted file]
libsrc/geos-cbm/memory/copystring.s [deleted file]
libsrc/geos-cbm/memory/crc.s [deleted file]
libsrc/geos-cbm/memory/doublepop.s [deleted file]
libsrc/geos-cbm/memory/doublespop.s [deleted file]
libsrc/geos-cbm/memory/fillram.s [deleted file]
libsrc/geos-cbm/memory/initram.s [deleted file]
libsrc/geos-cbm/memory/movedata.s [deleted file]
libsrc/geos-common/Makefile
libsrc/geos-common/memory/Makefile [new file with mode: 0644]
libsrc/geos-common/memory/clearram.s [new file with mode: 0644]
libsrc/geos-common/memory/cmpfstring.s [new file with mode: 0644]
libsrc/geos-common/memory/cmpstring.s [new file with mode: 0644]
libsrc/geos-common/memory/copyfstring.s [new file with mode: 0644]
libsrc/geos-common/memory/copystring.s [new file with mode: 0644]
libsrc/geos-common/memory/crc.s [new file with mode: 0644]
libsrc/geos-common/memory/doublepop.s [new file with mode: 0644]
libsrc/geos-common/memory/doublespop.s [new file with mode: 0644]
libsrc/geos-common/memory/fillram.s [new file with mode: 0644]
libsrc/geos-common/memory/initram.s [new file with mode: 0644]
libsrc/geos-common/memory/movedata.s [new file with mode: 0644]

index ea55bc2adfaa61e75e1faa99848f1dee4ebb2765..8911b68f4c25a87affcdf612cf57d0d9f2563947 100644 (file)
@@ -5,19 +5,8 @@
 #--------------------------------------------------------------------------
 # Object files
 
-S_OBJS +=      crc.o           \
-               doublepop.o     \
-               reuregs.o       \
-               clearram.o      \
-               fillram.o       \
-               initram.o       \
-               movedata.o      \
+S_OBJS +=      reuregs.o       \
                stashram.o      \
                fetchram.o      \
                swapram.o       \
-               verifyram.o     \
-               doublespop.o    \
-               copystring.o    \
-               cmpstring.o     \
-               copyfstring.o   \
-               cmpfstring.o
+               verifyram.o
diff --git a/libsrc/geos-cbm/memory/clearram.s b/libsrc/geos-cbm/memory/clearram.s
deleted file mode 100644 (file)
index 11e578d..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 30.10.99, 20.08.2003
-
-; void * ClearRam         (char *dest, int length);
-
-           .import DoublePop
-           .export _ClearRam
-
-           .include "jumptab.inc"
-           .include "geossym.inc"
-
-_ClearRam:
-           jsr DoublePop
-           pha
-           txa
-           pha
-           jsr ClearRam
-           pla
-           tax
-           pla
-           rts
-
diff --git a/libsrc/geos-cbm/memory/cmpfstring.s b/libsrc/geos-cbm/memory/cmpfstring.s
deleted file mode 100644 (file)
index b4aeb68..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 22.12.99, 29.07.2000
-
-; char CmpFString (char length, char *dest, char* source);
-
-           .import DoubleSPop, SetPtrXY
-           .import popa, return0, return1
-           .export _CmpFString
-
-           .include "jumptab.inc"
-
-_CmpFString:
-           jsr DoubleSPop
-           jsr popa
-           jsr SetPtrXY
-           jsr CmpFString
-           bne L1
-           jmp return0
-L1:        jmp return1
diff --git a/libsrc/geos-cbm/memory/cmpstring.s b/libsrc/geos-cbm/memory/cmpstring.s
deleted file mode 100644 (file)
index 532c509..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 22.12.1999, 2.1.2003
-
-; char CmpString (char *dest, char* source);
-
-           .import DoubleSPop
-           .import return0, return1
-           .export _CmpString
-
-           .include "jumptab.inc"
-
-_CmpString:
-           jsr DoubleSPop
-           jsr CmpString
-           bne L1
-           jmp return0
-L1:        jmp return1
diff --git a/libsrc/geos-cbm/memory/copyfstring.s b/libsrc/geos-cbm/memory/copyfstring.s
deleted file mode 100644 (file)
index bb96374..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 22.12.99, 29.07.2000
-
-; void CopyFString (char length, char *dest, char* source);
-
-           .import DoubleSPop, SetPtrXY
-           .import popa
-           .export _CopyFString
-
-           .include "jumptab.inc"
-
-_CopyFString:
-           jsr DoubleSPop
-           jsr popa
-           jsr SetPtrXY
-           jmp CopyFString
diff --git a/libsrc/geos-cbm/memory/copystring.s b/libsrc/geos-cbm/memory/copystring.s
deleted file mode 100644 (file)
index 60a1aa0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 22.12.99
-
-; void CopyString (char *dest, char* source);
-
-           .import DoubleSPop
-           .export _CopyString
-
-           .include "jumptab.inc"
-
-_CopyString:
-           jsr DoubleSPop
-           jmp CopyString
diff --git a/libsrc/geos-cbm/memory/crc.s b/libsrc/geos-cbm/memory/crc.s
deleted file mode 100644 (file)
index 7f6f98e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 22.12.99
-
-; int CRC         (char *memory, int length);
-
-           .import DoublePop
-           .export _CRC
-
-           .include "jumptab.inc"
-           .include "geossym.inc"
-
-_CRC:
-           jsr DoublePop
-           jsr CRC
-           lda r2L
-           ldx r2H
-           rts
-           
\ No newline at end of file
diff --git a/libsrc/geos-cbm/memory/doublepop.s b/libsrc/geos-cbm/memory/doublepop.s
deleted file mode 100644 (file)
index 855265e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 31.12.99
-
-           .import popax
-           .export DoublePop
-
-           .include "geossym.inc"
-
-DoublePop:
-           sta r0L
-           stx r0H
-           jsr popax
-           sta r1L
-           stx r1H
-           rts
diff --git a/libsrc/geos-cbm/memory/doublespop.s b/libsrc/geos-cbm/memory/doublespop.s
deleted file mode 100644 (file)
index 6a1165f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 22.12.99, 29.07.2000
-
-           .import popax
-           .importzp ptr3, ptr4
-           .export DoubleSPop
-           .export SetPtrXY
-
-           .include "geossym.inc"
-
-DoubleSPop:
-           sta ptr4
-           stx ptr4+1
-           jsr popax
-           sta ptr3
-           stx ptr3+1
-;          rts
-;
-; SetPtrXY can be sometimes executed twice, but even this way it is few cycles
-; faster...
-
-SetPtrXY:
-           ldx #ptr4
-           ldy #ptr3
-           rts
diff --git a/libsrc/geos-cbm/memory/fillram.s b/libsrc/geos-cbm/memory/fillram.s
deleted file mode 100644 (file)
index f2eb51f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 30.10.99, 15.07.2001
-
-; void * FillRam         (char *dest, char what, int length);
-
-           .import popa, popax
-           .export _FillRam
-
-           .include "jumptab.inc"
-           .include "geossym.inc"
-
-_FillRam:
-           sta r0L
-           stx r0H
-           jsr popa
-           sta r2L
-           jsr popax
-           sta r1L
-           stx r1H
-           pha
-           txa
-           pha
-           jsr FillRam
-           pla
-           tax
-           pla
-           rts
diff --git a/libsrc/geos-cbm/memory/initram.s b/libsrc/geos-cbm/memory/initram.s
deleted file mode 100644 (file)
index 6127985..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 30.10.99
-
-; void InitRam         (struct inittab*);
-
-           .export _InitRam
-
-           .include "jumptab.inc"
-           .include "geossym.inc"
-
-_InitRam:
-           sta r0L
-           stx r0H
-           jmp InitRam
diff --git a/libsrc/geos-cbm/memory/movedata.s b/libsrc/geos-cbm/memory/movedata.s
deleted file mode 100644 (file)
index 656285d..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 30.10.99, 15.07.2001
-
-; void* MoveData         (char* dest, char *source, int length);
-
-           .import popax
-           .export _MoveData
-
-           .include "jumptab.inc"
-           .include "geossym.inc"
-
-_MoveData:
-           sta r2L
-           stx r2H
-           jsr popax
-           sta r0L
-           stx r0H
-           jsr popax
-           sta r1L
-           stx r1H
-           jsr MoveData
-           lda r1L             ; return dest ptr to be compatible with memmove and memcpy
-           ldx r1H
-           rts
index 2e2f88ba8d32d4d12502c5d432be805d6dbf7dd1..0c316db90c1ee1b1c0028710b27cdaaa2b5d1a9e 100644 (file)
@@ -30,7 +30,8 @@ CFLAGS        = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
 # Directories
 
 DIRS = dlgbox          \
-       file
+       file            \
+       memory
 
 #--------------------------------------------------------------------------
 # Directives
diff --git a/libsrc/geos-common/memory/Makefile b/libsrc/geos-common/memory/Makefile
new file mode 100644 (file)
index 0000000..e5fb77a
--- /dev/null
@@ -0,0 +1,18 @@
+#
+# makefile for CC65 runtime library
+#
+
+#--------------------------------------------------------------------------
+# Object files
+
+S_OBJS +=      crc.o           \
+               doublepop.o     \
+               clearram.o      \
+               fillram.o       \
+               initram.o       \
+               movedata.o      \
+               doublespop.o    \
+               copystring.o    \
+               cmpstring.o     \
+               copyfstring.o   \
+               cmpfstring.o
diff --git a/libsrc/geos-common/memory/clearram.s b/libsrc/geos-common/memory/clearram.s
new file mode 100644 (file)
index 0000000..11e578d
--- /dev/null
@@ -0,0 +1,25 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 30.10.99, 20.08.2003
+
+; void * ClearRam         (char *dest, int length);
+
+           .import DoublePop
+           .export _ClearRam
+
+           .include "jumptab.inc"
+           .include "geossym.inc"
+
+_ClearRam:
+           jsr DoublePop
+           pha
+           txa
+           pha
+           jsr ClearRam
+           pla
+           tax
+           pla
+           rts
+
diff --git a/libsrc/geos-common/memory/cmpfstring.s b/libsrc/geos-common/memory/cmpfstring.s
new file mode 100644 (file)
index 0000000..b4aeb68
--- /dev/null
@@ -0,0 +1,22 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 22.12.99, 29.07.2000
+
+; char CmpFString (char length, char *dest, char* source);
+
+           .import DoubleSPop, SetPtrXY
+           .import popa, return0, return1
+           .export _CmpFString
+
+           .include "jumptab.inc"
+
+_CmpFString:
+           jsr DoubleSPop
+           jsr popa
+           jsr SetPtrXY
+           jsr CmpFString
+           bne L1
+           jmp return0
+L1:        jmp return1
diff --git a/libsrc/geos-common/memory/cmpstring.s b/libsrc/geos-common/memory/cmpstring.s
new file mode 100644 (file)
index 0000000..532c509
--- /dev/null
@@ -0,0 +1,20 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 22.12.1999, 2.1.2003
+
+; char CmpString (char *dest, char* source);
+
+           .import DoubleSPop
+           .import return0, return1
+           .export _CmpString
+
+           .include "jumptab.inc"
+
+_CmpString:
+           jsr DoubleSPop
+           jsr CmpString
+           bne L1
+           jmp return0
+L1:        jmp return1
diff --git a/libsrc/geos-common/memory/copyfstring.s b/libsrc/geos-common/memory/copyfstring.s
new file mode 100644 (file)
index 0000000..bb96374
--- /dev/null
@@ -0,0 +1,19 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 22.12.99, 29.07.2000
+
+; void CopyFString (char length, char *dest, char* source);
+
+           .import DoubleSPop, SetPtrXY
+           .import popa
+           .export _CopyFString
+
+           .include "jumptab.inc"
+
+_CopyFString:
+           jsr DoubleSPop
+           jsr popa
+           jsr SetPtrXY
+           jmp CopyFString
diff --git a/libsrc/geos-common/memory/copystring.s b/libsrc/geos-common/memory/copystring.s
new file mode 100644 (file)
index 0000000..60a1aa0
--- /dev/null
@@ -0,0 +1,16 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 22.12.99
+
+; void CopyString (char *dest, char* source);
+
+           .import DoubleSPop
+           .export _CopyString
+
+           .include "jumptab.inc"
+
+_CopyString:
+           jsr DoubleSPop
+           jmp CopyString
diff --git a/libsrc/geos-common/memory/crc.s b/libsrc/geos-common/memory/crc.s
new file mode 100644 (file)
index 0000000..7f6f98e
--- /dev/null
@@ -0,0 +1,21 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 22.12.99
+
+; int CRC         (char *memory, int length);
+
+           .import DoublePop
+           .export _CRC
+
+           .include "jumptab.inc"
+           .include "geossym.inc"
+
+_CRC:
+           jsr DoublePop
+           jsr CRC
+           lda r2L
+           ldx r2H
+           rts
+           
\ No newline at end of file
diff --git a/libsrc/geos-common/memory/doublepop.s b/libsrc/geos-common/memory/doublepop.s
new file mode 100644 (file)
index 0000000..855265e
--- /dev/null
@@ -0,0 +1,18 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 31.12.99
+
+           .import popax
+           .export DoublePop
+
+           .include "geossym.inc"
+
+DoublePop:
+           sta r0L
+           stx r0H
+           jsr popax
+           sta r1L
+           stx r1H
+           rts
diff --git a/libsrc/geos-common/memory/doublespop.s b/libsrc/geos-common/memory/doublespop.s
new file mode 100644 (file)
index 0000000..6a1165f
--- /dev/null
@@ -0,0 +1,28 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 22.12.99, 29.07.2000
+
+           .import popax
+           .importzp ptr3, ptr4
+           .export DoubleSPop
+           .export SetPtrXY
+
+           .include "geossym.inc"
+
+DoubleSPop:
+           sta ptr4
+           stx ptr4+1
+           jsr popax
+           sta ptr3
+           stx ptr3+1
+;          rts
+;
+; SetPtrXY can be sometimes executed twice, but even this way it is few cycles
+; faster...
+
+SetPtrXY:
+           ldx #ptr4
+           ldy #ptr3
+           rts
diff --git a/libsrc/geos-common/memory/fillram.s b/libsrc/geos-common/memory/fillram.s
new file mode 100644 (file)
index 0000000..f2eb51f
--- /dev/null
@@ -0,0 +1,30 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 30.10.99, 15.07.2001
+
+; void * FillRam         (char *dest, char what, int length);
+
+           .import popa, popax
+           .export _FillRam
+
+           .include "jumptab.inc"
+           .include "geossym.inc"
+
+_FillRam:
+           sta r0L
+           stx r0H
+           jsr popa
+           sta r2L
+           jsr popax
+           sta r1L
+           stx r1H
+           pha
+           txa
+           pha
+           jsr FillRam
+           pla
+           tax
+           pla
+           rts
diff --git a/libsrc/geos-common/memory/initram.s b/libsrc/geos-common/memory/initram.s
new file mode 100644 (file)
index 0000000..6127985
--- /dev/null
@@ -0,0 +1,17 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 30.10.99
+
+; void InitRam         (struct inittab*);
+
+           .export _InitRam
+
+           .include "jumptab.inc"
+           .include "geossym.inc"
+
+_InitRam:
+           sta r0L
+           stx r0H
+           jmp InitRam
diff --git a/libsrc/geos-common/memory/movedata.s b/libsrc/geos-common/memory/movedata.s
new file mode 100644 (file)
index 0000000..656285d
--- /dev/null
@@ -0,0 +1,27 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 30.10.99, 15.07.2001
+
+; void* MoveData         (char* dest, char *source, int length);
+
+           .import popax
+           .export _MoveData
+
+           .include "jumptab.inc"
+           .include "geossym.inc"
+
+_MoveData:
+           sta r2L
+           stx r2H
+           jsr popax
+           sta r0L
+           stx r0H
+           jsr popax
+           sta r1L
+           stx r1H
+           jsr MoveData
+           lda r1L             ; return dest ptr to be compatible with memmove and memcpy
+           ldx r1H
+           rts