RealDOS is a SpartaDOS clone. Handle it the same way as SpartaDOS.
.endproc
-; check, whether seeking is supported
+; check whether seeking is supported
; tmp3: iocb
; X: index into fd_table
;
; do the test
lda __dos_type
cmp #SPARTADOS
+ beq :+
+ cmp #REALDOS
bne ns1
- txa
+: txa
pha
lda DOS+1 ; get SpartaDOS version
cmp #$40
; Based on on code by Christian Groessler
;
; unsigned char __fastcall__ _syschdir (const char* name);
-; for SpartaDOS and MyDOS
+; for SpartaDOS, RealDOS, and MyDOS
;
.include "atari.inc"
lda __dos_type
cmp #SPARTADOS
beq :+
+ cmp #REALDOS
+ beq :+
lda #CHDIR_MYDOS
.byte $2C ; BIT <abs>
: lda #CHDIR_SPDOS