A83: Re: Sv: Sv: Problem with _dispop1a


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

A83: Re: Sv: Sv: Problem with _dispop1a



You could do that, but then again, the number would not be aligned at currow/curcol, 'cause the TI aligns it to the right.
-----Oorspronkelijk bericht-----
Van: Andreas Hjordt <ahj@trition.dk>
Aan: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Datum: donderdag 7 september 2000 21:28
Onderwerp: A83: Sv: Sv: Problem with _dispop1a

By the way if you were to display the number in reg. a I would do...
 
dispRegA:
    ld    hl,o
    ld    l,a
    jp    _disphl
 
Andreas Hjordt
 
----- Original Message -----
From: Andreas Hjordt
To: assembly-83@lists.ticalc.org
Sent: Thursday, September 07, 2000 9:21 PM
Subject: A83: Sv: Problem with _dispop1a

As far as I _remember_ the number in reg. a determine how many digits to be displayed of the number in op1. That's way reg. a has to be bigger than 0 and lower then 16.
 
Andreas Hjordt
 
 
----- Original Message -----
From: ti-83
To: Assembly-83
Sent: Thursday, September 07, 2000 6:37 PM
Subject: A83: Problem with _dispop1a

I'm making a game, and I use the code wich is under. It displays the register's value a on the screen at the position of penrow, pencol, but when a is 0, the TI returns an UNDERFLOW error and breaks the program. Does someone could say me why and how can I do to display the value of a on the graphic screen with this routine or with another ?
 
call _setxxop1
ld de,19*256+68
ld (pencol),de
call _dispop1a
ret
 
Thanks

Ti-83
 
Le monde de la TI-83
http://www.ti-83.fr.st
ti-83@fr.st