Re: A86: Reset?


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

Re: A86: Reset?




At 10:25 PM 4/9/98 -0700, you wrote:
>
>Would someone explain the command - "rst"?
>
>What does it mean/do?
>
>How is it useful?
>
The rst command is just like a call, except it can only call a few memory
locations. And it's shorter (and therefore faster). So TI put a bunch of
frequently used routines at the rst addresses. They are:

rst $00	reset calc (i.e. "mem cleared defaults set", don't use this)
rst $08	ld OP2,OP1
rst $10	_FINDSYM
rst $18	push REAL/CPLX (OP1/OP2) onto FP stack
rst $20	load 10 bytes at (hl) into OP1
rst $28	OP1=OP1*OP2 (this _does_ have a name, look in ti86math.inc)
rst $30	OP1=OP1+OP2 (ditto)
rst $38	interrupt (called about 200 times/sec, and all that. There's no point
	using this one either)

How's that?

--Joshua


References: