[A83] Re: fill
[Prev][Next][Index][Thread]
[A83] Re: fill
The input is just like this way:
ld hl,_X_coord
push hl
ld hl,_Y_coord
push hl
call fill
So you need to grab the value from the stack (it's the Small C way, I
know), and 'calculate' with those values...
Oh, and (0,0) is top-left, you should know I think...
Nothing more to say...
(I could send you the source I currently have, might be some help if you
want to give it a try)
Henk Poley
> Van: Tijl Coosemans <tijlc@hotmail.com>
>
> Does it need to check up, down, left and right? It would be easier if the
> input pixel was the one in the top-right corner.
>
>
> ----- Original Message -----
> From: "Henk Poley" <HPoley@DDS.nl>
>
> > Has anybody made a good fill routine, to fill up a certain part of the
> > screen? So something you just point to a coordinate and then fills it
up
> > till it found all borders around it.
> >
> > I've already got a generic Z80 one, but that uses quite much stack
space,
> > about as much as there is stackspace on the Ti82/83(+)...
> >
> > Henk Poley