1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +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:
cpg 2004-03-16 22:47:50 +00:00
parent 278b62832e
commit 550afe3afa

View File

@ -14,8 +14,10 @@ detect: lda #ATARIDOS
sta __dos_type ; set default
lda DOS
cmp #$53 ; "S" (SpartaDOS)
cmp #'S' ; SpartaDOS
beq spdos
cmp #'M' ; MyDOS
beq mydos
ldy #COMTAB
lda #$4C
@ -37,6 +39,10 @@ spdos: lda #SPARTADOS
sta __dos_type
done: rts
mydos: lda #MYDOS
sta __dos_type
rts
.bss
__dos_type: .res 1