From: ol.sc
Date: Wed, 8 Feb 2012 19:48:31 +0000 (+0000)
Subject: - The address given for GetSerialNumber in the "Hitchhiker's Guide To GEOS" is obviou...
X-Git-Tag: V2.14~560
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=129d3bf872577185be27d0d09724eccfb46f91e1;p=cc65
- The address given for GetSerialNumber in the "Hitchhiker's Guide To GEOS" is obviously wrong: $4b38.
- 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
---
diff --git a/libsrc/geos-cbm/system/Makefile b/libsrc/geos-cbm/system/Makefile
index c20b2f393..a39ad6e4c 100644
--- a/libsrc/geos-cbm/system/Makefile
+++ b/libsrc/geos-cbm/system/Makefile
@@ -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
index 000000000..bdb6836c1
--- /dev/null
+++ b/libsrc/geos-cbm/system/getserialnumber.s
@@ -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
diff --git a/libsrc/geos-common/system/Makefile b/libsrc/geos-common/system/Makefile
index 0e711c622..127b2ae1b 100644
--- a/libsrc/geos-common/system/Makefile
+++ b/libsrc/geos-common/system/Makefile
@@ -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
index bdb6836c1..000000000
--- a/libsrc/geos-common/system/getserialnumber.s
+++ /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