# Re: A83: Re: quick question about ti83plus [83]

Indeed it can't be done on the Ti-83.

_puts = 470Dh

See this chart, and you will notice that "RST 470Dh" is illegal. (even "RST 0Dh")
-------------+----+---+------+------------+---------------------+----------------------
|Mnemonic     |Clck|Siz|SZHPNC|  OP-Code   |    Description      |        Notes         |
-------------+----+---+------+------------+---------------------+----------------------
|RST 0        | 11 | 1 |------|C7          |Restart              | (p=0H,8H,10H,...,38H)|
|RST 08H      | 11 | 1 |      |CF          |                     |                      |
|RST 10H      | 11 | 1 |      |D7          |                     |                      |
|RST 18H      | 11 | 1 |      |DF          |                     |                      |
|RST 20H      | 11 | 1 |      |E7          |                     |                      |
|RST 28H      | 11 | 1 |      |EF          |                     |                      |
|RST 30H      | 11 | 1 |      |F7          |                     |                      |
|RST 38H      | 11 | 1 |      |FF          |                     |                      |
/RST C,38H    / ?? / ? /      /38 FF       /                     /These insructions are:/
/RST NC,38H   / ?? / ? /      /30 FF       /                     / JR cc,FFh            /
/RST Z,38H    / ?? / ? /      /28 FF       /                     /FFh is no \$N+2, so it /
/RST NZ,38H   / ?? / ? /      /20 FF       /                     /is executed as RST 38H/
+-------------+----+---+------+------------+---------------------+----------------------+

BTW: another to notice is the last four, they are not that usefull,
because they only point to the TIOS-interupt-routine, but it can be
usefull in interupt programs.
(I don't know if this undocumented feature also works on 'our' Z80)

----------
> Van: D Weiss <dwedit@hotmail.com>
> Aan: assembly-83@lists.ticalc.org
> Onderwerp: Re: A83: Re: quick question about ti83plus
> Datum: woensdag 13 december 2000 21:53
>
>
> I tried that, VTI crashed after I quit ion.  I guess you can't do that
> optimization.
>
> >From: "David Phillips" <david@acz.org>
> >To: <assembly-83@lists.ticalc.org>
> >Subject: A83: Re: quick question about ti83plus
> >Date: Wed, 13 Dec 2000 13:30:06 -0700
> >
> >
> >Yes.
> >
> > > Can the code:
> > > bcall(_puts)
> > > ret
> > >
> > > be optimized to:
> > > bjump(_puts)
> > >
> > > like on the regular 83?