Re: A83: Help with a problem
[Prev][Next][Index][Thread]
Re: A83: Help with a problem
On Wed, 18 Aug 1999 18:30:39 -0500, Scott Dial wrote:
>
>According to Joe's include file the values are different:
>
>;-----> RST Routines
>; These are the routines associated with the instructions rst 00h to rst
>38h
>; rst 00h - Restart
>; rst 08h - call _op1toop2
>; rst 10h - call _findSym (non-program/list)
>; rst 18h - call _pushop1
>; rst 20h - call _hltoop1 (copy 9 bytes from (hl) to op1)
>; rst 28h - call _fpmult
>; rst 30h - call _fpadd
>; rst 38h - call the standard interrupt routine
>
>Linus Akesson wrote:
> >
> > In accordance with the prophecy, James Vernon uttered:
> >
> > > I know "rst 20h" loads 9 bytes from (hl) to
> > > (Op1) and "rst 18h" pushes Op1 to the fpstack. Does anyone know what
>all the
> > > other "rst" commands do?
> >
> > > James Vernon
> >
> > RST 0 Reset (z80 jumps here when it first powers up, i.e. when you
> > insert new batteries)
> >
> > RST 8 Copy OP1 to OP2 (_OP1TOOP2)
> >
> > RST 16 Find variable in VAT (_FINDSYM)
> >
> > RST 24 Push OP1 to FPS (_PUSHREALO1) OP1 must be a real number.
> >
> > RST 32 Move 9 bytes at hl to OP1 (_MOV9TOOP1)
> >
> > RST 40 OP1 * OP2 -> OP1 (_FPMULT)
> >
> > RST 48 OP1 + OP2 -> OP1 (_FPADD)
> >
> > RST 56 Interrupt handler (called automatically when a hardware
>interrupt
> > occurs)
> >
> > Linus
> >
> > - --- Linus Akesson ------------------------ http://linusworld.cjb.net
>--- -
> >
> > We are the Knights who say: MOVE.L USP,A1
>
>--
>Scott "_Wrath_" Dial
>wrath@calc.org
>ICQ#3608935
>TimeCity Co-Lead Developer, AI - www.timecity.org
>Member of TCPA - tcpa.calc.org
No, what Joe has is the same as what Linus wrote: eg. Linus had "rst 32"
as copy 9 bytes from (hl) to (Op1). Joe has "rst 20h". These are the same,
Linus just put the values in decimal, not hex.
James Vernon
jimbob_v@hotmail.com
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com