This link has the full source code for a single function "getbits" (approx 45 lines of x86 assembly instructions) - [url removed, login to view]
As the name implies all it does is read a certain amount of bits ('n bits') from a stream (ie 3 bits or 12 bits etc -- any number from 1 to 32), and it maintains an internal state so it's able to keep following the stream along to correctly output 'n bits' until the end of the stream. (It's a "bitstream" reader)
I just need you to make a simple demo using either gcc or fasm/masm that demonstrates how to call it. Just a console app, nothing fancy, just a simple demonstration. For example the demo might use a buffer of say 15 bytes, and call getbits(10) over and over to read and printf() 10 bits at a time (into a 16 or 32bit 'holder' int) until end of the buffer.
I look forward to working with you! Please include a brief comment in your proposal, thanks! :)