mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +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:
parent
278b62832e
commit
550afe3afa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user