]> git.sur5r.net Git - cc65/commitdiff
- The address given for GetSerialNumber in the "Hitchhiker's Guide To GEOS" is obviou...
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Feb 2012 19:48:31 +0000 (19:48 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Feb 2012 19:48:31 +0000 (19:48 +0000)
- According to the "Hitchhiker's Guide To GEOS" GetSerialNumber returns a string on Apple GEOS (in contrast to a number on CBM GEOS).
Given both facts and that the API is presumably not important at all it seems reasonable to just go without it on Apple GEOS.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5503 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos-cbm/system/Makefile
libsrc/geos-cbm/system/getserialnumber.s [new file with mode: 0644]
libsrc/geos-common/system/Makefile
libsrc/geos-common/system/getserialnumber.s [deleted file]

index c20b2f393dd6c07a304d1ec75bcede2baa0fe3f9..a39ad6e4ce701b01bd0a3ad62072b0ac17d239b0 100644 (file)
@@ -7,6 +7,7 @@
 
 S_OBJS  +=      ctype.o                        \
                get_ostype.o            \
+               getserialnumber.o       \
                initdoneio.o            \
                setdevice.o             \
                tobasic.o
diff --git a/libsrc/geos-cbm/system/getserialnumber.s b/libsrc/geos-cbm/system/getserialnumber.s
new file mode 100644 (file)
index 0000000..bdb6836
--- /dev/null
@@ -0,0 +1,17 @@
+;
+; 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
index 0e711c6226d76371566bc7160b89436d14ea3f34..127b2ae1ba8409b3b89f097ddf8385f93abdeab1 100644 (file)
@@ -13,7 +13,6 @@ S_OBJS  +=      callroutine.o         \
                extzp.o                 \
                firstinit.o             \
                getrandom.o             \
-               getserialnumber.o       \
                mainargs.o              \
                mainloop.o              \
                oserrlist.o             \
diff --git a/libsrc/geos-common/system/getserialnumber.s b/libsrc/geos-common/system/getserialnumber.s
deleted file mode 100644 (file)
index bdb6836..0000000
+++ /dev/null
@@ -1,17 +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