[A83] Re: Displaying Characters
[Prev][Next][Index][Thread]
[A83] Re: Displaying Characters
Here's some advice: Don't name your variables "A"! It's too easy to confuse
with REGISTER A!
You wouldn't name labels HL, would you?
>From: "Shane" <ti83asm2001@yahoo.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: <assembly-83@lists.ticalc.org>
>Subject: [A83] Re: Displaying Characters
>Date: Wed, 10 Oct 2001 17:01:40 -0400 (Eastern Daylight Time)
>MIME-Version: 1.0
>Received: from [195.67.128.9] by hotmail.com (3.2) with ESMTP id
>MHotMailBD8E028B0084400438A6C34380090EAE0; Wed, 10 Oct 2001 14:03:15 -0700
>Received: from towerguard. (mx-1.sollentuna.net [195.67.128.9])by
>mx-1.sollentuna.net (Postfix) with ESMTPid 6264C1801F; Wed, 10 Oct 2001
>23:02:38 +0200 (CEST)
>Received: with LISTAR (v1.0.0; list assembly-83); Wed, 10 Oct 2001 23:02:38
>+0200 (CEST)
>Received: from femail18.sdc1.sfba.home.com (femail18.sdc1.sfba.home.com
>[24.0.95.145])by mx-1.sollentuna.net (Postfix) with ESMTP id EDCFE1801Bfor
><assembly-83@lists.ticalc.org>; Wed, 10 Oct 2001 23:02:35 +0200 (CEST)
>Received: from up ([65.10.236.9]) by femail18.sdc1.sfba.home.com
>(InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id
><20011010210222.IYZF6724.femail18.sdc1.sfba.home.com@up> for
><assembly-83@lists.ticalc.org>; Wed, 10 Oct 2001 14:02:22 -0700
>From assembly-83-bounce@lists.ticalc.org Wed, 10 Oct 2001 14:03:51 -0700
>Delivered-To: lists.ticalc-assembly-83@mx-1.sollentuna.net
>Message-Id: <3BC4B734.000005.43611@up.vbch1.va.home.com>
>X-Mailer: IncrediMail 2001 (1500332)
>References: <200110102049.f9AKnKb14877@sunsparc.hysoft-automation.com>
>X-Priority: 3
>X-FID: FLAVOR00-NONE-0000-0000-000000000000
>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: ti83asm2001@yahoo.com
>Precedence: bulk
>X-list: assembly-83
>
>
>I am trying to display numbers on the graph screen that are stored in in a
>string 'A' and then decrement them. SOCCERK121 helped me with displaying
>them on the graph screen by:
>
>ld a,(a)
>ld h,0
>ld l,a
>bcall(_Setxxxxop2)
>bcall(_op2toop1)
>ld a,5 ;<--- number of digits, 5 is a safe number
>bcall(_dispop1a)
>
>
>But whenever I dec the A like this:
>
> ld hl,A
> dec (hl)
>
>A: .db 0h
>
>It messes up and from then on displays the number 255 whenever i reuse
>SOCCERK121's routine.
>I don't know wether its because A is a hex number or if I am doing
>something wrong.
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp