[A86] Re: Hybid ASM/BASIC Prog questions..


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

[A86] Re: Hybid ASM/BASIC Prog questions..




> Van: rabidcow@juno.com
> 
> On Mon, 7 Jan 2002 16:20:26 +0100 "Henk Poley" <HPoley@DDS.nl> writes:
> > 
> > On the Ti82/83(+) there are some pointers (and a string) that will 
> > tell you where (and what) the BASIC program is that called your
> > assembly program. Is there also something like that on the Ti85/86?
> 
> That information is stored on one of the stacks, I forget which.  There's
> probably another place that also stores just the most recent basic
> program, what's the address on the 82/3/+?  It's probably named the same
> thing on the 86, or used the same way at least.

LOL, they don't have names on either of the "smaller-Ti's"... So that won't
help. I found them more or less myself (but probably others have done it
before).

However if you call a BASIC program from within a BASIC program, and from
that one an assembly program you can find the name on the FP stack and the
position (relative) as the 3rd word pushed on the Operator-stack, when you
work with the Ti83(+)

> > If you use the ROM to load data from one RAM-page to the other, do the
> > interrupts get disabled? Or should I do that myself if I have an IM2
> > running in the background?
> 
> If it's loaded in a paged ram bank then you need to disable interrupts
> yourself.  If it's in $c000-$ffff, I don't see why it would make a
> difference.

The first and the last banks ar fixed, ain't it ($0000-$4000 and
$C000-$FFFF)? Or is it just that the TIOS doesn't change them at any point?

> The rom has no reason to disable interrupts.  The default interrupt
> handler is in the non-paged rom area, and any calls it makes to paged rom
> save and restore the previous page number.

Okay, thanks for the info.

	Henk Poley <><




Follow-Ups: