Re: A83: Many Pixels... Routine? =P


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

Re: A83: Many Pixels... Routine? =P




You can always use my pixelplotting routine as a base :)
(you find it fully explained in James Matthews Tutorials)

//Olle

Master M wrote:
> 
> I don't see why you can't do it yourself.  You seem to klnow plenty about
> ASM.  Check out Movax or Joe's sprite routines to find alittle more info
> on how to convert coordinates into memory locations and how you can set
> the right bits
> 
> >
> >What's the best way to plot many pixels to the display...?   Could
> >somebody
> >write me a routine that would read the values for the coordinates in
> >an array
> >of databytes somewhere in the program, and write them to the graph
> >buffer...?
> >I was thinking something like this...
> >
> >Input:    de = Location to point to, for beginning of data for X
> >Coordinates
> >             hl = Location to point to, for beginning of data for Y
> >Coordinates.
> >             b = Number of Pixels to plot (I figured, use 'b' to use
> >with
> >'djnz'.)
> >             c = Color for all of the Pixels to plot...
> >Output:  All of the Pixels are written to the Buffer with the
> >specified Color.
> >
> >I tried something simple already that would just read the current
> >location of
> >'de' and 'hl' so they are used together and put into 'bc' for use
> >with
> >'_IPoint', plotting each point, and then increasing the pointer
> >location, but
> >I just got all confused with the push/pops 'n stuff, because '_Ipoint'
> >uses
> >different registers... =P
> >
> >Can somebody write out this routine for me, or is there a much better
> >way to
> >do this by using Bit manipulation 'n stuff...? Thanks for your help,
> >anyone...
> >=)
> >
> >                                                                                                                               --Jason
> >K.
> >
> 
> <<<<<<<<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>>>>>>>>
>        See ya,
>        Mastermind
> 
>        http://www.bigfoot.com/~mastermind5
> 
> ___________________________________________________________________
> You don't need to buy Internet access to use free Internet e-mail.
> Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
> or call Juno at (800) 654-JUNO [654-5866]


References: