Re: A86: OK. So, I kinda get what you're sayin'


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

Re: A86: OK. So, I kinda get what you're sayin'




Hmm... If you mean shuffling variables around like Kirk said, I have no
idea.  But if you just want to know how to load memory pages:

let a=page number...

add a, 64	;set bit 6 so it loads RAM page, not ROM page
out (5), a	;page is now in memory area $4000-$7FFF

or you can send it out port 6 instead, which will load it to memory area
$8000-$BFFF.  You can load the page with port 5, then inc a and send it
out port 6, and you will have two consecutive pages as a contiguous
memory block.  When you are done, send $0D out port 5;  this is the ROM
page with the call table on it.  If you forget to do this, the calc will
crash if you try to make any ROM calls.

ld a, $0D
out (5), a	;swap ROM page $0D back in

-----
I don't think there are any shells for the 86 that require programs to
be specifically tailored to them.  Routine calls are made to the ROM
instead of to a shell.

Interrupt support?

Cassady Roop



DorkReMi@aol.com wrote:
> 
> OK. Well, I guessed I would have to switch between memory pages in my program a while back.  What I need to know is _how_ to go about doing this.  Can anyone help me with that?
> 
> Also, is programming on the 86 shell specific? If so, what's the best shell (in my mind, the one with best interrupt support, a la Usgard)?
> 
> Thanks ya'll
> 
> -Josh Morris
>  Macross Software
>  dorkremi@aol.com


References: