This was introduced in some collected volume. It originally explained how to detect it with C; later I implemented it in QB. Now that I've found the program, I'll post it here. As long as you use one variable to save the detection result and prepare two sets of displays, it can automatically adapt to whether there is a Chinese character support system.
REM Automatically detect the Chinese character support system in a BASIC program
DEF SEG = &H40
mode = PEEK(&H49)
OUT &H3CE, &H6
result = INP(&H3CF) AND &HF
PRINT "mode="; mode, "result="; result
IF mode = 3 AND result = 5 THEN
PRINT "You are now in a direct-screen-writing Chinese character support system"
PRINT "What you see now is Chinese"
ELSE
IF mode = 3 AND result = 14 THEN
PRINT "Is not any CCDOS in the memory ,It's it ?"
PRINT "So , You only see the English"
ELSE
IF mode = 18 AND result = 1 THEN
PRINT "You are now in a non-direct-screen-writing Chinese character support system"
ELSE
PRINT "I Can't know which display mode ."
END IF
END IF
END IF
REM Automatically detect the Chinese character support system in a BASIC program
DEF SEG = &H40
mode = PEEK(&H49)
OUT &H3CE, &H6
result = INP(&H3CF) AND &HF
PRINT "mode="; mode, "result="; result
IF mode = 3 AND result = 5 THEN
PRINT "You are now in a direct-screen-writing Chinese character support system"
PRINT "What you see now is Chinese"
ELSE
IF mode = 3 AND result = 14 THEN
PRINT "Is not any CCDOS in the memory ,It's it ?"
PRINT "So , You only see the English"
ELSE
IF mode = 18 AND result = 1 THEN
PRINT "You are now in a non-direct-screen-writing Chinese character support system"
ELSE
PRINT "I Can't know which display mode ."
END IF
END IF
END IF
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos


