Task

Demonstrate how to check whether the output device is a terminal or not.



Related task

   Check input device is a terminal


LDA $D011                ;screen control register 1
AND #%00100000           ;bit 5 clear = text mode, bit 5 set = gfx mode
BEQ isTerminal