]> git.sur5r.net Git - cc65/commitdiff
Moved the 'system' 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 20:58:15 +0000 (20:58 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 4 Feb 2012 20:58:15 +0000 (20:58 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5446 b7a2c559-68d2-44c3-8de9-860c34a00d81

21 files changed:
libsrc/geos-cbm/system/Makefile
libsrc/geos-cbm/system/callroutine.s [deleted file]
libsrc/geos-cbm/system/enterdesktop.s [deleted file]
libsrc/geos-cbm/system/firstinit.s [deleted file]
libsrc/geos-cbm/system/getrandom.s [deleted file]
libsrc/geos-cbm/system/getserialnumber.s [deleted file]
libsrc/geos-cbm/system/mainloop.s [deleted file]
libsrc/geos-cbm/system/panic.s [deleted file]
libsrc/geos-cbm/system/systime.c [deleted file]
libsrc/geos-cbm/system/sysuname.s [deleted file]
libsrc/geos-common/Makefile
libsrc/geos-common/system/Makefile [new file with mode: 0644]
libsrc/geos-common/system/callroutine.s [new file with mode: 0644]
libsrc/geos-common/system/enterdesktop.s [new file with mode: 0644]
libsrc/geos-common/system/firstinit.s [new file with mode: 0644]
libsrc/geos-common/system/getrandom.s [new file with mode: 0644]
libsrc/geos-common/system/getserialnumber.s [new file with mode: 0644]
libsrc/geos-common/system/mainloop.s [new file with mode: 0644]
libsrc/geos-common/system/panic.s [new file with mode: 0644]
libsrc/geos-common/system/systime.c [new file with mode: 0644]
libsrc/geos-common/system/sysuname.s [new file with mode: 0644]

index e479f77887ab6872461aebf7c79c4c0d092125f4..a1a4c4371c638540bc59df8405d57f7097875589 100644 (file)
@@ -5,18 +5,8 @@
 #--------------------------------------------------------------------------
 # Object files
 
-C_OBJS +=      systime.o
-
 S_OBJS  +=      ctype.o                        \
-               callroutine.o           \
-               enterdesktop.o          \
-               firstinit.o             \
                get_ostype.o            \
-               getrandom.o             \
-               getserialnumber.o       \
                initdoneio.o            \
-               mainloop.o              \
-               panic.o                 \
                tobasic.o               \
-               setdevice.o             \
-               sysuname.o
+               setdevice.o
\ No newline at end of file
diff --git a/libsrc/geos-cbm/system/callroutine.s b/libsrc/geos-cbm/system/callroutine.s
deleted file mode 100644 (file)
index db160b2..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 21.12.99
-
-; void CallRoutine (myRoutine);
-
-           .export _CallRoutine
-
-           .include "jumptab.inc"
-
-_CallRoutine = CallRoutine
\ No newline at end of file
diff --git a/libsrc/geos-cbm/system/enterdesktop.s b/libsrc/geos-cbm/system/enterdesktop.s
deleted file mode 100644 (file)
index 00ca175..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 30.10.99, 17.04.2003
-
-; void EnterDeskTop (void);
-
-           .import _exit
-           .export _EnterDeskTop
-
-_EnterDeskTop:
-           lda #0
-           tax
-           jmp _exit
diff --git a/libsrc/geos-cbm/system/firstinit.s b/libsrc/geos-cbm/system/firstinit.s
deleted file mode 100644 (file)
index ef1008d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 30.10.99
-
-; void FirstInit (void);
-
-           .export _FirstInit
-
-           .include "jumptab.inc"
-
-_FirstInit = FirstInit
\ No newline at end of file
diff --git a/libsrc/geos-cbm/system/getrandom.s b/libsrc/geos-cbm/system/getrandom.s
deleted file mode 100644 (file)
index 35e3f82..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 30.10.1999, 2.1.2003
-
-; char GetRandom (void);
-
-           .export _GetRandom
-
-           .include "jumptab.inc"
-
-_GetRandom:
-           jsr GetRandom
-           ldx #0
-           rts
diff --git a/libsrc/geos-cbm/system/getserialnumber.s b/libsrc/geos-cbm/system/getserialnumber.s
deleted file mode 100644 (file)
index 1838da6..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 30.10.99
-
-; int GetSerialNumber (void);
-
-           .export _GetSerialNumber
-
-           .include "jumptab.inc"
-           .include "geossym.inc"
-
-_GetSerialNumber:
-
-           jsr GetSerialNumber
-           lda r0L
-           ldx r0H
-           rts
diff --git a/libsrc/geos-cbm/system/mainloop.s b/libsrc/geos-cbm/system/mainloop.s
deleted file mode 100644 (file)
index 81873fe..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-
-;
-; Maciej 'YTM/Elysium' Witkowiak
-;
-; 30.10.1999, 10.01.2003
-
-; void MainLoop (void);
-
-           .export _MainLoop
-
-           .include "jumptab.inc"
-
-_MainLoop = MainLoop
diff --git a/libsrc/geos-cbm/system/panic.s b/libsrc/geos-cbm/system/panic.s
deleted file mode 100644 (file)
index 2be7eed..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-
-;
-; Maciej 'YTM/Alliance' Witkowiak
-;
-; 30.10.99
-
-; void Panic (void);
-
-           .export _Panic
-
-           .include "jumptab.inc"
-
-_Panic = Panic
\ No newline at end of file
diff --git a/libsrc/geos-cbm/system/systime.c b/libsrc/geos-cbm/system/systime.c
deleted file mode 100644 (file)
index b3d4ab1..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-
-/*
- * systime.c
- *
- * Maciej 'YTM/Elysium' Witkowiak, 22.11.2002
- */
-
-#include <time.h>
-#include <geos.h>
-
-time_t _systime(void) {
-
-struct tm currentTime;
-
-    currentTime.tm_sec = system_date.s_seconds;
-    currentTime.tm_min = system_date.s_minutes;
-    currentTime.tm_hour = system_date.s_hour;
-    currentTime.tm_mday = system_date.s_day;
-    currentTime.tm_mon = system_date.s_month;
-    currentTime.tm_year = system_date.s_year;
-    if (system_date.s_year < 87) {
-       currentTime.tm_year+=100;
-    }
-    currentTime.tm_isdst = -1;
-
-    return mktime(&currentTime);
-
-}
-
-clock_t clock(void) {
-
-    return _systime();
-
-}
diff --git a/libsrc/geos-cbm/system/sysuname.s b/libsrc/geos-cbm/system/sysuname.s
deleted file mode 100644 (file)
index c0cd914..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;
-; Ullrich von Bassewitz, 2003-08-12
-;
-; unsigned char __fastcall__ _sysuname (struct utsname* buf);
-;
-
-        .export         __sysuname, utsdata
-
-        .import         utscopy
-
-        __sysuname = utscopy
-
-;--------------------------------------------------------------------------
-; Data. We define a fixed utsname struct here and just copy it.
-
-.rodata
-
-utsdata:
-        ; sysname
-        .asciiz         "cc65"
-
-        ; nodename
-        .asciiz         ""
-
-        ; release
-        .byte           ((.VERSION >> 8) & $0F) + '0'
-        .byte           '.'
-        .byte           ((.VERSION >> 4) & $0F) + '0'
-        .byte           $00
-
-        ; version
-        .byte           (.VERSION & $0F) + '0'
-        .byte           $00
-
-        ; machine
-        .asciiz         "GEOS"
-
-
-
index 7bdc9a4bf1a79292c617b9fd73ea02fbc54bb2bc..253cf6edf7363e803b4d975d7971b01ab3a04931 100644 (file)
@@ -36,7 +36,8 @@ DIRS =        dlgbox          \
        menuicon        \
        mousesprite     \
        process         \
-       runtime
+       runtime         \
+       system
 
 #--------------------------------------------------------------------------
 # Directives
diff --git a/libsrc/geos-common/system/Makefile b/libsrc/geos-common/system/Makefile
new file mode 100644 (file)
index 0000000..9de6c6e
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# makefile for CC65 runtime library
+#
+
+#--------------------------------------------------------------------------
+# Object files
+
+C_OBJS +=      systime.o
+
+S_OBJS  +=      callroutine.o          \
+               enterdesktop.o          \
+               firstinit.o             \
+               getrandom.o             \
+               getserialnumber.o       \
+               mainloop.o              \
+               panic.o                 \
+               sysuname.o
diff --git a/libsrc/geos-common/system/callroutine.s b/libsrc/geos-common/system/callroutine.s
new file mode 100644 (file)
index 0000000..db160b2
--- /dev/null
@@ -0,0 +1,13 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 21.12.99
+
+; void CallRoutine (myRoutine);
+
+           .export _CallRoutine
+
+           .include "jumptab.inc"
+
+_CallRoutine = CallRoutine
\ No newline at end of file
diff --git a/libsrc/geos-common/system/enterdesktop.s b/libsrc/geos-common/system/enterdesktop.s
new file mode 100644 (file)
index 0000000..00ca175
--- /dev/null
@@ -0,0 +1,15 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 30.10.99, 17.04.2003
+
+; void EnterDeskTop (void);
+
+           .import _exit
+           .export _EnterDeskTop
+
+_EnterDeskTop:
+           lda #0
+           tax
+           jmp _exit
diff --git a/libsrc/geos-common/system/firstinit.s b/libsrc/geos-common/system/firstinit.s
new file mode 100644 (file)
index 0000000..ef1008d
--- /dev/null
@@ -0,0 +1,13 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 30.10.99
+
+; void FirstInit (void);
+
+           .export _FirstInit
+
+           .include "jumptab.inc"
+
+_FirstInit = FirstInit
\ No newline at end of file
diff --git a/libsrc/geos-common/system/getrandom.s b/libsrc/geos-common/system/getrandom.s
new file mode 100644 (file)
index 0000000..35e3f82
--- /dev/null
@@ -0,0 +1,16 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 30.10.1999, 2.1.2003
+
+; char GetRandom (void);
+
+           .export _GetRandom
+
+           .include "jumptab.inc"
+
+_GetRandom:
+           jsr GetRandom
+           ldx #0
+           rts
diff --git a/libsrc/geos-common/system/getserialnumber.s b/libsrc/geos-common/system/getserialnumber.s
new file mode 100644 (file)
index 0000000..1838da6
--- /dev/null
@@ -0,0 +1,19 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 30.10.99
+
+; int GetSerialNumber (void);
+
+           .export _GetSerialNumber
+
+           .include "jumptab.inc"
+           .include "geossym.inc"
+
+_GetSerialNumber:
+
+           jsr GetSerialNumber
+           lda r0L
+           ldx r0H
+           rts
diff --git a/libsrc/geos-common/system/mainloop.s b/libsrc/geos-common/system/mainloop.s
new file mode 100644 (file)
index 0000000..81873fe
--- /dev/null
@@ -0,0 +1,13 @@
+
+;
+; Maciej 'YTM/Elysium' Witkowiak
+;
+; 30.10.1999, 10.01.2003
+
+; void MainLoop (void);
+
+           .export _MainLoop
+
+           .include "jumptab.inc"
+
+_MainLoop = MainLoop
diff --git a/libsrc/geos-common/system/panic.s b/libsrc/geos-common/system/panic.s
new file mode 100644 (file)
index 0000000..2be7eed
--- /dev/null
@@ -0,0 +1,13 @@
+
+;
+; Maciej 'YTM/Alliance' Witkowiak
+;
+; 30.10.99
+
+; void Panic (void);
+
+           .export _Panic
+
+           .include "jumptab.inc"
+
+_Panic = Panic
\ No newline at end of file
diff --git a/libsrc/geos-common/system/systime.c b/libsrc/geos-common/system/systime.c
new file mode 100644 (file)
index 0000000..b3d4ab1
--- /dev/null
@@ -0,0 +1,34 @@
+
+/*
+ * systime.c
+ *
+ * Maciej 'YTM/Elysium' Witkowiak, 22.11.2002
+ */
+
+#include <time.h>
+#include <geos.h>
+
+time_t _systime(void) {
+
+struct tm currentTime;
+
+    currentTime.tm_sec = system_date.s_seconds;
+    currentTime.tm_min = system_date.s_minutes;
+    currentTime.tm_hour = system_date.s_hour;
+    currentTime.tm_mday = system_date.s_day;
+    currentTime.tm_mon = system_date.s_month;
+    currentTime.tm_year = system_date.s_year;
+    if (system_date.s_year < 87) {
+       currentTime.tm_year+=100;
+    }
+    currentTime.tm_isdst = -1;
+
+    return mktime(&currentTime);
+
+}
+
+clock_t clock(void) {
+
+    return _systime();
+
+}
diff --git a/libsrc/geos-common/system/sysuname.s b/libsrc/geos-common/system/sysuname.s
new file mode 100644 (file)
index 0000000..c0cd914
--- /dev/null
@@ -0,0 +1,39 @@
+;
+; Ullrich von Bassewitz, 2003-08-12
+;
+; unsigned char __fastcall__ _sysuname (struct utsname* buf);
+;
+
+        .export         __sysuname, utsdata
+
+        .import         utscopy
+
+        __sysuname = utscopy
+
+;--------------------------------------------------------------------------
+; Data. We define a fixed utsname struct here and just copy it.
+
+.rodata
+
+utsdata:
+        ; sysname
+        .asciiz         "cc65"
+
+        ; nodename
+        .asciiz         ""
+
+        ; release
+        .byte           ((.VERSION >> 8) & $0F) + '0'
+        .byte           '.'
+        .byte           ((.VERSION >> 4) & $0F) + '0'
+        .byte           $00
+
+        ; version
+        .byte           (.VERSION & $0F) + '0'
+        .byte           $00
+
+        ; machine
+        .asciiz         "GEOS"
+
+
+