From ed37399cf29981b29afe2b86cbb673c1a96c1d94 Mon Sep 17 00:00:00 2001 From: doug Date: Mon, 3 Dec 2012 04:53:28 +0000 Subject: [PATCH] changed conditional jump for normal processing --- branches/dwg/Source/ansi.asm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/branches/dwg/Source/ansi.asm b/branches/dwg/Source/ansi.asm index 16f0ed93..144a03fb 100644 --- a/branches/dwg/Source/ansi.asm +++ b/branches/dwg/Source/ansi.asm @@ -1,4 +1,7 @@ -; +; ansi.asm 12/3/2012 dwg - changed polarity of conditional jump for normal processing + +; Status: Still very experimental, either doesn't work or is buggy + ;================================================================================================== ; ANSI EMULATION MODULE ;================================================================================================== @@ -281,7 +284,7 @@ ANSI_STATE0: JR Z,ANSI_LF CP 27 ; ESCAPE ; This is the hook into the escape handler - JR Z,ANSI_NOT_ESC ; go around if not CSI + JR NZ,ANSI_NOT_ESC ; go around if not CSI LD HL,ANSI_STATE1 LD (ANSI_STATE),HL XOR A ; setup SUCCESS as return status @@ -290,8 +293,11 @@ ANSI_NOT_ESC: CP 32 ; COMPARE TO SPACE (FIRST PRINTABLE CHARACTER) RET C ; SWALLOW OTHER CONTROL CHARACTERS + + ; A reg has next character from BIOS CONOUT LD B,BF_VDAWRC CALL EMU_VDADISP ; SPIT OUT THE RAW CHARACTER + LD A,(ANSI_COL) ; GET CUR COL INC A ; INCREMENT LD (ANSI_COL),A ; SAVE IT @@ -363,4 +369,4 @@ ANSI_ROW .DB 0 ; CURRENT ROW - 0 BASED ; ANSI_DIM: ANSI_COLS .DB 80 ; NUMBER OF COLUMNS ON SCREEN -ANSI_ROWS .DB 24 ; NUMBER OF ROWS ON SCREEN \ No newline at end of file +ANSI_ROWS .DB 24 ; NUMBER OF ROWS ON SCREEN