Re: A86: Re:
[Prev][Next][Index][Thread]
Re: A86: Re:
You could also save a byte by using a jp rather than a call to _ILine, and
then you can leave off the ret, because the end of the _ILine routine has a
ret already. Not too great in this case, but it can add up...
Bill N. wrote:
> Filipe Alberto Soares Pinto wrote:
>
> > I'd like to ask two questinons
> >
> > 1.
> > Why doesn't this work?
> >
> > #include "asm86.h"
> > #include "ti86asm.inc"
> > #include "ti86math.inc"
> > #include "ti86ops.inc"
> > #include "ti86abs.inc"
> >
> > .org _asm_exec_ram
> >
> > call _clrLCD
> > ld hl,1
> > ld b,3
> > ld c,5
> > ld d,5
> > ld e,1
> > call _ILine
> >
> > .end
> > END
> >
> > I've tried changinh b,c,d and e value, but it still crashes my calc
> >
>
> Besides the missing ret, try using ld h,1 instead of ld hl,1
>
> ;-----------------------------------------------------------------------
>
> ; _ILine: Draw an unclipped line from (B, C) to (D, E), no clipping!
> ;
> ; INPUT: Coordinate values input are integer, and assumed
> ; within screen values.
> ; B - X Coordinate of first point
> ; C - Y Coordinate of first point
> ; D - X Coordinate of second point
> ; E - Y Coordinate of second point
> ; H - Command to
> perform
> ; 0 - Set points to light
> ; 1 - Set points to dark
> ; 2 - Reverse point (XOR operation)
> ;-----------------------------------------------------------------------
>
> Bill N.
> penguin@your-house.com
--
Stephen Hicks
mailto:shicks@mindspring.com
UIN:5453914
AIM:Kupopo1
References:
- No Subject
- From: Filipe Alberto Soares Pinto <nop56773@mail.telepac.pt>
- A86: Re:
- From: "Bill N." <b.nagel@usa.net>