# HG changeset patch # User Ken H. # Date 1392019840 -7200 # Node ID e84a638d1c16055c803217846a2ba65061da8662 # Parent 9edca3e61b660536a097742f14bc79285c5211c6 cohr: Support both COVDG control codes and COHR Esc codes $0B is the only control character that is used by both protocols. I decided to keep the the COVDG command as this protocol is more common. So far I've been able to find only 3 OS9 applications that are using the CoHR drivers, all by Dragon Data: Stylograph, Dynacalc and RMS. Only RMS seems to use the $0B (Home) control code, but it is easy to patch the RMS.trm file to replace $0B with the $01 CoVDG Home command. So this seems like a reasonable sacrifice. diff -r 9edca3e61b66 -r e84a638d1c16 level1/modules/cohr.asm --- a/level1/modules/cohr.asm Mon Feb 10 01:36:20 2014 +0100 +++ b/level1/modules/cohr.asm Mon Feb 10 10:10:40 2014 +0200 @@ -96,6 +96,8 @@ InitSaveExit stb V.COLoad,u clrb + lda #$FF + sta V.CColr,u * Flag Cursor as not hidden InitExit puls pc,u,a @@ -521,10 +523,13 @@ bne L0380 puls pc,b +DelLine + clrb + stb V.51XPos,u + lbsr DoDisplayCursor * * $1b42 - clear to end of line * - DoClrEOL inc V.51CursorChanged,u bsr L03BA @@ -599,6 +604,42 @@ clr V.51XPos,u clr V.51YPos,u lbsr DoDisplayCursor + lbra L02A6 + +* +* $05 XX - set cursor off/on/color per XX-32 from COVDG (only on/off supported) +* +SetCrsr ldb #$01 need additional byte + leax