1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-11 20:29:36 +00:00

Added GEOS 1.3 and 1.5 detection.

This commit is contained in:
Marco van den Heuvel 2018-02-15 15:24:58 -08:00
parent 5d73f28a85
commit b0ef67d14c
3 changed files with 17 additions and 1 deletions

View File

@ -35,7 +35,9 @@ char get_ostype(void);
#define GATEWAY 0x08
#define GEOS_V10 0x10
#define GEOS_V11 0x11
#define GEOS_V12 0x12 /* ??? not sure */
#define GEOS_V12 0x12
#define GEOS_V13 0x13
#define GEOS_V15 0x15
#define GEOS_V20 0x20
#define WHEELS 0x40 /* only Wheels? */

View File

@ -26,6 +26,8 @@ _get_ostype:
and #%11110000
cmp #$10
beq geos10
cmp #$13 ; either 1.3 or 1.5
beq geos13check
lda gatewayFlag
cmp #$41
beq gateway
@ -37,6 +39,7 @@ _get_ostype:
beq geos_on_plus4
ora version
rts
geos13:
geos10:
lda version
rts
@ -54,6 +57,13 @@ megapatch3:
lda #$03
ora c128Flag
rts
geos13check:
lda mp3Flag
cmp #$03
bne geos13
geos15:
lda #$15
rts
_get_tv:
jsr _get_ostype

View File

@ -32,6 +32,10 @@ void main (void)
version = "GEOS v1.1";
} else if (os == GEOS_V12) {
version = "GEOS v1.2";
} else if (os == GEOS_V13) {
version = "GEOS v1.3";
} else if (os == GEOS_V15) {
version = "GEOS v1.5";
} else if (os == GEOS_V20) {
version = "GEOS v2.0";
} else if (os == MEGAPATCH3) {