[Z88dk-commits] CVS: z88dk/libsrc/stdio/ansi f_ansi.asm,1.6,1.7

Bridge to the z88dk-commits mailing list
Post Reply
Stefano Bodrato

[Z88dk-commits] CVS: z88dk/libsrc/stdio/ansi f_ansi.asm,1.6,1.7

Post by Stefano Bodrato »

Update of /cvsroot/z88dk/z88dk/libsrc/stdio/ansi
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv29618/libsrc/stdio/ansi

Modified Files:
f_ansi.asm
Log Message:
Fixed the "CUP" (cursor positioning) ESC sequence functionality
in the ANSI emulation engine (valid for many platforms).


Index: f_ansi.asm
===================================================================
RCS file: /cvsroot/z88dk/z88dk/libsrc/stdio/ansi/f_ansi.asm,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** f_ansi.asm 20 May 2003 16:01:55 -0000 1.6
--- f_ansi.asm 14 Mar 2008 14:50:31 -0000 1.7
***************
*** 717,732 ****
pop hl
jp m,HLineOK
! ld a,(text_rows)
! ;; 19/11/2002 Stefano - was: dec c
dec a
.HLineOK
ld (ansi_ROW),a
! inc hl
ld a,(hl)
! dec a
ld hl,text_cols
cp (hl)
jp m,HColOK
! ld a,(hl)
dec a
.HColOK
--- 717,733 ----
pop hl
jp m,HLineOK
! ld a,(text_rows) ; position next char at max possible row
dec a
.HLineOK
ld (ansi_ROW),a
! inc hl ; point to column
ld a,(hl)
! ;dec a ; char position
! push hl
ld hl,text_cols
cp (hl)
+ pop hl
jp m,HColOK
! ld a,(text_cols) ; position next char at max possible column
dec a
.HColOK


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Post Reply