mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
forgot to add the new file atari/is_cmdline_dos.s in my last commit...
This commit is contained in:
parent
da65866e24
commit
b3d7c09ba1
20
libsrc/atari/is_cmdline_dos.s
Normal file
20
libsrc/atari/is_cmdline_dos.s
Normal file
@ -0,0 +1,20 @@
|
||||
;
|
||||
; Christian Groessler, May-2016
|
||||
;
|
||||
; unsigned char _is_cmdline_dos(void);
|
||||
;
|
||||
; returns 0 for non-commandline DOS, 1 for commandline DOS
|
||||
;
|
||||
|
||||
.export __is_cmdline_dos
|
||||
.import __dos_type
|
||||
.include "atari.inc"
|
||||
|
||||
__is_cmdline_dos:
|
||||
ldx #0
|
||||
lda __dos_type
|
||||
cmp #MAX_DOS_WITH_CMDLINE + 1
|
||||
txa
|
||||
rol a
|
||||
eor #$01
|
||||
rts
|
Loading…
x
Reference in New Issue
Block a user