mirror of
https://github.com/cc65/cc65.git
synced 2025-08-10 04:25:21 +00:00
add MyDOS detection (from Stefan Haubenthal)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2935 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -14,8 +14,10 @@ detect: lda #ATARIDOS
|
|||||||
sta __dos_type ; set default
|
sta __dos_type ; set default
|
||||||
|
|
||||||
lda DOS
|
lda DOS
|
||||||
cmp #$53 ; "S" (SpartaDOS)
|
cmp #'S' ; SpartaDOS
|
||||||
beq spdos
|
beq spdos
|
||||||
|
cmp #'M' ; MyDOS
|
||||||
|
beq mydos
|
||||||
|
|
||||||
ldy #COMTAB
|
ldy #COMTAB
|
||||||
lda #$4C
|
lda #$4C
|
||||||
@@ -37,6 +39,10 @@ spdos: lda #SPARTADOS
|
|||||||
sta __dos_type
|
sta __dos_type
|
||||||
done: rts
|
done: rts
|
||||||
|
|
||||||
|
mydos: lda #MYDOS
|
||||||
|
sta __dos_type
|
||||||
|
rts
|
||||||
|
|
||||||
.bss
|
.bss
|
||||||
|
|
||||||
__dos_type: .res 1
|
__dos_type: .res 1
|
||||||
|
Reference in New Issue
Block a user