Re: A83: ROMcall reference [83]


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

Re: A83: ROMcall reference [83]




--- Henk Poley <HPoley@DDS.nl> wrote:
> > I think it's a good idea. I don't know much about
> them (all), and I'd
> like 
> > to know more. Start with it!
> 
> 
> Okay, first the RST commands, I know that most of
> them ar just 'shortcuts'
> to very usefull ROMcalls.
> BTW: these are only the ones I know *nothing* about.
> BTW2: Download the "83 ROMcall refference" at TiCalc
> (pub -> texts ->
> informational texts -> 83rom.zip
>            To view the others.
> 
> +- RST 8h
>
----------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0008 |  0008 |  0008 |  0008
> |  0008 |  0008 |  0008
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> | Jump to:          |  ???? |  ???? |  ???? |  ????
> |  ???? |  ???? |  19E4
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroid
> description: ????
> 
> +- ????
>
------------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  000B |  000B |  000B |  000B
> |  000B |  000B |  000B
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> description:
>  .db FD,CB,07,46 ;bit 0,(IY+07h) => No known
> function...
>  .db C9          ;ret
> 
> +- RST 10h
>
---------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0010 |  0010 |  0010 |  0010
> |  0010 |  0010 |  0010
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> | Jump to:          |  ???? |  ???? |  ???? |  ????
> |  ???? |  ???? |  224C
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroid
> description:
> 
> +- ????
>
------------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0013 |  0013 |  0013 |  0013
> |  0013 |  0013 |  0013
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> description:
>  .db FD,CB,02,66 ;bit 4,(IY+02h) => bit
> grffuncm,(IY+grfmodeflags)
>  .db C9          ;ret
> 
> +- RST 18h ---------+
> +  RST RPUSHREALO1 
>
+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0018 |  0018 |  0018 |  0018
> |  0018 |  0018 |  0018
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> | Jump to:          |  ???? |  ???? |  ???? |  ????
> |  ???? |  ???? |  29BE
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroid
> description: Same as "call _PUSHREALOP1", but RST is
> shorter (1 byte)
>              Pushes OP1 onto the FP-Stack ???
> 
> +- ????
>
------------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  001B |  001B |  001B |  001B
> |  001B |  001B |  001B
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> description:
>  .db FD,CB,03,C6 ;set 0,(IY+03h) => set
> graphdraw,(IY+graphflags)
>  .db C9          ;ret
> 
> +- RST 20h
>
---------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0020 |  0020 |  0020 |  0020
> |  0020 |  0020 |  0020
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> | Jump to:          |  ???? |  ???? |  ???? |  ????
> |  ???? |  ???? |  1AB6
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroid
> description:
> 
> +- ????
>
------------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0023 |  0023 |  0023 |  0023
> |  0023 |  0023 |  0023
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> description:
>  .db 3A,3C,91 ;ld a,(913Ch) => ??(913C)??
>  .db B7       ;or a
>  .db C9       ;ret
> 
> +- RST 28h
>
---------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0028 |  0028 |  0028 |  0028
> |  0028 |  0028 |  0028
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> | Jump to:          |  ???? |  ???? |  ???? |  ????
> |  ???? |  ???? |  09C2
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroid
> description:
> 
> +- ????
>
------------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  002B |  002B |  002B |  002B
> |  002B |  002B |  002B
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> description:
>  .db 97       ;sub a
>  .db 32,3C,91 ;ld (913Ch),a => ??(913C)??
>  .db C9       ;ret
> 
> +- RST 30h
>
---------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0030 |  0030 |  0030 |  0030
> |  0030 |  0030 |  0030
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> | Jump to:          |  ???? |  ???? |  ???? |  ????
> |  ???? |  ???? |  08D5
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroid
> description:
> 
> +- RST 38h
>
---------+-------+-------+-------+-------+-------+-------+-------+
> |                   |  0038 |  0038 |  0038 |  0038
> |  0038 |  0038 |  0038
> |
>
+-------------------+-------+-------+-------+-------+-------+-------+-------
> +
> input:
> output:
> destroid
> description: Begin of TIOS interupt. What are the
> tasks of the interupt?
> 



Well, I believe Linus gave us a little info on this a
little over a year ago.

Jimmy Conner


From: Linus Akesson <lairfight@softhome.net>
To: assembly-83@lists.ticalc.org 
Date: Wed, 18 Aug 1999 18:39:19 +0200 
Subject: Re: A83: Help with a problem 

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


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/