Re: A86: check asm
[Prev][Next][Index][Thread]
Re: A86: check asm
well, i got _exec_assembly to work fine for me when i run asm programs.
actually my program (asmOS) is basically done except it tries to run
basic programs with _exec_assembly. it allows you just to type in the
name of the asm program, it even lets you have one parameter (it must be
a variable though, not a literal). im storing this parameter in
plotSScreen, the first byte is the number of parameters (0 or 1), the
second is the length of the name of the variable and the next bytes are
the name of the variable. is there a better place to store this while
passing it? or is plotSScreen fine? also i still need help on that basic
thing :)
later
Keith Batten
Kirk Meyer wrote:
>
> i don't think we should use _exec_assembly within (sqrt)parse because it
> seems to run programs funny (i've tried this approach already). what i
> think has to be done is, look through the # variable, start at 0. search
> for the next :, get a length and see if that exists. keep doing this and
> doing this and doing this [or is this how (sqrt)parse works? maybe it
> does one command at a time? a letters at a time? what?] anyway, if it
> sees an ASM program, it would recreate # to include "Asm(" before the
> program. the alternative would be to hook (sqrt)CMDTOK and catch the
> programs that way. i think (sqrt)PARSE is better though because then in
> programs, etc. its only a one-time expense.
>
> Keith wrote:
> >
> > heres some code that i cant seem to get to work in my (sqrt)parse
> > program. (i haven't tried it in a non (sqrt) program).
> > i got it from cyberoptics rom webpage.
> > what it does is check if 'program' is an asm program and if it isn't it
> > returns and if it is then it runs the program.
> >
> > ;
> > ld hl, program
> > rst 20h
> > rst 10h
> > call $46AF
> > jr nz, quit
> >
> > jp _exec_assembly
> > ;
> >
> > thanks
> >
> > Keith Batten
>
> --
>
> =====================================
> = =
> = Kirk Meyer (mailto:_@ibm.net) =
> = http://www.bigfoot.com/~kirkmeyer =
> = =
> = "Set your affection on things =
> = above, not on things on the =
> = earth." Colossians 3:2 =
> = =
> =====================================
References: