[A83] Re: About _grbufcpy_v


[Prev][Next][Index][Thread]

[A83] Re: About _grbufcpy_v




ION's fastcopy routine is in IONF.Z80, and is freely available.  Don't want 
to use ION?  Just paste the code into your own program...

One little problem with Ionfastcopy though is that on the rom 1.10 TI83-, 
the screen is updated too fast and causes an garbled staircase effect.

This routine from IONF.Z80:

;-----> Copy the gbuf to the screen (fast)
;Input:	nothing
;Output:graph buffer is copied to the screen
fastCopy:
	di
	ld	a,$80				; 7
	out	($10),a				; 11
	ld	hl,gbuf-12-(-(12*64)+1)		; 10
	ld	a,$20				; 7
	ld	c,a				; 4
	inc	hl				; 6 waste
	dec	hl				; 6 waste
fastCopyAgain:
	ld	b,64				; 7
	inc	c				; 4
	ld	de,-(12*64)+1			; 10
	out	($10),a				; 11
	add	hl,de				; 11
	ld	de,10				; 10
fastCopyLoop:
	add	hl,de				; 11
	inc	hl				; 6 waste
	inc	hl				; 6 waste
	inc	de				; 6
	ld	a,(hl)				; 7
	out	($11),a				; 11
	dec	de				; 6
	djnz	fastCopyLoop			; 13/8
	ld	a,c				; 4
	cp	$2B+1				; 7
	jr	nz,fastCopyAgain		; 10/1
	ret					; 10
; Critical timings:
;	command->command: 65
;	command->value  : 68
;	value  ->value  : 66
;	value  ->command: 67



>From: "TypeR unknown" <typerfuture@hotmail.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] About _grbufcpy_v
>Date: Tue, 27 Nov 2001 18:49:56 +0100
>MIME-Version: 1.0
>X-Originating-IP: [213.51.98.50]
>Received: from [195.67.128.9] by hotmail.com (3.2) with ESMTP id 
>MHotMailBDCD1D4C006F4004370BC343800911990; Tue, 27 Nov 2001 09:50:39 -0800
>Received: from towerguard. (mx-1.sollentuna.net [195.67.128.9])by 
>mx-1.sollentuna.net (Postfix) with ESMTPid C237F18011; Tue, 27 Nov 2001 
>18:49:59 +0100 (CET)
>Received: with LISTAR (v1.0.0; list assembly-83); Tue, 27 Nov 2001 18:49:59 
>+0100 (CET)
>Received: from hotmail.com (f102.pav2.hotmail.com [64.4.37.102])by 
>mx-1.sollentuna.net (Postfix) with ESMTP id 260751800Ffor 
><assembly-83@lists.ticalc.org>; Tue, 27 Nov 2001 18:49:58 +0100 (CET)
>Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; 
>Tue, 27 Nov 2001 09:49:56 -0800
>Received: from 213.51.98.50 by pv2fd.pav2.hotmail.msn.com with HTTP;Tue, 27 
>Nov 2001 17:49:56 GMT
>From assembly-83-bounce@lists.ticalc.org Tue, 27 Nov 2001 09:50:56 -0800
>Delivered-To: lists.ticalc-assembly-83@mx-1.sollentuna.net
>Message-ID: <F102gddlQZuZrXKcIDT0000cfd4@hotmail.com>
>X-OriginalArrivalTime: 27 Nov 2001 17:49:56.0331 (UTC) 
>FILETIME=[ECEDFBB0:01C1776B]
>X-listar-version: Listar v1.0.0
>Sender: assembly-83-bounce@lists.ticalc.org
>Errors-To: assembly-83-bounce@lists.ticalc.org
>X-original-sender: typerfuture@hotmail.com
>Precedence: bulk
>X-list: assembly-83
>
>
>Is ION's fastcopy routine something like writing to the LCD driver from
>memory in one pass??
>
>I believe it was Ian Graf who has written such code, and is available in 
>ASM
>guru. Perhaps doing it this way won't require ION...
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp