Re: A86: sqrtPARSE revealed!


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

Re: A86: sqrtPARSE revealed!




by the way, in case you can't figure out what it does - it switches plus with multiply...

Stephen Hicks wrote:

> i just made this program.  it's neat, but you better have a way to remove it
> (killhook will work :-)
>
> bryan, don't upload this.
>
> Keith wrote:
>
> > Cool!, finally i can get my prgram to work. thanks a lot :)
> > later
> > Keith Batten
> >
> > Stephen Hicks wrote:
> > >
> > > I just did a little disassembly now that i found out about the alt_ret
> > > thingy.  I now understand how to use sqrtPARSE and make it work
> > > correctly!  Here goes:
> > >
> > > This is a sample sqrtPARSE program:
> > >
> > > _alt_ret_status           equ         0D2F9h
> > > _alt_ret_jmp_page         equ         0D2FAh
> > > _alt_ret_jmp_addr         equ         0D2FBh
> > >
> > >  ld a,$11
> > >  ld (_alt_ret_status),a
> > >  ld a,$3
> > >  ld (_alt_ret_jmp_page),a    ;this could be combined with the 1st but i
> > > didn't for clarity
> > >  ld hl,$5851
> > >  ld (_alt_ret_jmp_addr),hl
> > >  ld hl,ParseIn
> > >  rst 20h
> > >  rst 10h
> > >  ld a,b
> > >  ex de,hl
> > >    ;ahl now points to the parsed command-line.
> > >    ;you can do whatever you want with this.
> > >  ret    ;ret back to normal parser!
> > >
> > > ParseIn:
> > > .db $12,$01,"#"
> > >
> > > --
> > > Stephen Hicks
> > > mailto:shicks@mindspring.com
> > > ICQ:5453914
> > > IRC/AIM:Kupopo
> > > Hopemage:http://www.mindspring.com/~shicks/
>
> --
> Stephen Hicks
> mailto:shicks@mindspring.com
> ICQ:5453914
> IRC/AIM:Kupopo
> Hopemage:http://www.mindspring.com/~shicks/
>
>   ------------------------------------------------------------------------
>
>                    Name: kupo2.86p
>    kupo2.86p       Type: Untitled Document (application/x-unknown-content-type-TI-86.Document)
>                Encoding: base64
>
>                    Name: kupo2.asm
>    kupo2.asm       Type: Assembly Source File (application/x-unknown-content-type-Asmide86.Document)
>                Encoding: base64



--
Stephen Hicks
mailto:shicks@mindspring.com
ICQ:5453914
IRC/AIM:Kupopo
Hopemage:http://www.mindspring.com/~shicks/



References: