1.instead the ugly
for(i-0;i<1000;i++)
{
}
use
i=1000
while(i-->0)
{
}
better performace
2.
Another thing is about transparent color.. like was said dozens of times here you really need a nice "RLE encoding" of alpha channel (no matter if it's 1bit like in your example or >1bit)
Advantages:
-MUCH faster (on PC with if statement transparent bitmap copy was about 3x slower then normal bitmap copy... with RLE coded transparent information your transparent bitmap copy can be EASILY MUCH FASTER then normal bitmap copy. It all depends how many pixels of your bitmap are transparent.. and a 1pixel transparent/non-transparent grid would be a bad test bitmap

-saves space on disk, lots of it (you don't need to keep 16bpp for transparent pixels, you do get some additional data saved thru, but it's most often much smaller)
disadvantages:
-harder to code.. especially with clipping and you need some additional code to preprocess bitmap...but it's well worth it:-)
So this alpha-RLE encoding works pretty much like this:
I - PREPROCESSING
1.we have got a WORD that keeps info about number of pixels ahead that are transparent (one byte-lets say lower8bits) and number of pixels that are non-transparent ie. solid:-) (also one bit-high 8bits of WORD)
2.After this word you place x pixels data, where x is number of solid pixels ahead
3.repeat for whole image
II-DRAWING
1.we read our WORD with info about nr of transparent pixels ahead and number of solid pixels after them
2.we change dst pointer position by number of transparent pixels
3.we draw number of solid pixels stored in the other 8bits of info from WORD
4.repeat as long as data is expected and/or we're not at the end of line (or end of screen if clipping is used)
So from this scheme it's obvious that you don't use tons of if instructions in your drawing loop... what's equally important is that you don't keep reading data which appears to be a transparent pixel and waste a lot of time this way.
Here's a small example:
0-transparent pixel
1-solid pixel (later represented as normal 16bpp data)
0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0
we have a simply image (only alpha bits present here)
now we use the above scheme to preprocess image and we get this data: (saved word after word)
0x0402 - first control word (lower 8 bits - transparent pixels, higher 8 bits - solid pixels)
0x0001 - first pixel color
0x0001 - second pixel color
0x0001 - third pixel color
0x0001 - fourth pixel color
0x0404 - second control word
0x0001 - first pixel color(of course first pixel in this control word)
0x0001 - second pixel color
0x0001 - third pixel color
0x0001 - fourth pixel color
0x0002 - third ans last control word - only transparent pixels
first obvious thing, from 16 pixels (16bpp each) we dropped to 11 (16bpp) variables (8 from those are pixel color values) - so we save some memory, and this example is far from good for our method (in most sprites you will notice 10+pixels of the same type one after another)
now when drawing you don't need to perform an if on each pixel, and blocks of transparent pixels are processed WITH ONE ADD INSTRUCTION! (you simly incresae the destination pointer by number of transparent images, nothing more)
To check if we have reached end of sprite line and we need to go down one line I check control word for 0x0000 (so 0 transparent and 0 solid pixels ahead), it's obvious that in normal situation this combination isn't possible, so I use it to make my drawing function aware that we're at the end of a line(or possibly even end of bitmap).
Of course you need to make your preprocessing function add those 0x0000 at end of every line. It costs you 2 additional bytes per line but it's well worth to use instead trying to keep track of which pixel you're drawing in line.
Ok, I have got enought for now

For example source I think that phantom's ball-sprite example (the one that drawed tons of balls) uses it together with c-buffer, so you might want to check it out.
If you need some more example source I have got a simply ddraw function in 80x86 asm on my hd including preprocessing (it automatically performs preprocessing while loading .tga image)