I'll take a look at that. An idea I came up with last night while I was asleep was a method that uses my current encoding.
With 4 pixels loaded in a 32-bit register: AND the input pixels with the alpha mask SHR this result so that the bit is in position 0 Multiply so that this bit is expanded to a full byte of 1s AND the input and screen with this mask OR the modified input onto the screen I'm trying to think of how I may be able to skip something near the end, but this is pretty good so far I think. Happy Hacking, David E. McMackins II Supporting Member, Electronic Frontier Foundation (#2296972) Associate Member, Free Software Foundation (#12889) www.mcmackins.org www.delwink.com www.eff.org www.gnu.org www.fsf.org On 07/23/2018 05:27 AM, Eric Auer wrote: > > Hi, just a quick extra idea: You could read about > the PCX file format for 8-bit colors and define one > color to be "opaque". Then you can store your image > in PCX format in RAM and do run length coded BLOCKS > of either overwriting or not overwriting pixels on > screen, without needing per-pixel decisions at all! > > https://www.fileformat.info/format/pcx/egff.htm > > Note that PCX compression uses values 192 to 255 > for special codes, so it helps to optimize your > palette to use mainly pixel colors 0 to 191... > > Regards, Eric > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel