3 ms·
Fun fact, the third byte of the last argument to the Windows BitBlt function describes a 3 bits -> 1 bit function (inputs being source, destination and brush) i
by bonzini 3y ago
Fun fact, the third byte of the last argument to the Windows BitBlt function describes a 3 bits -> 1 bit function (inputs being source, destination and brush) in exactly this way.
However, the two bytes below encode the formula for the function, so that the transfer could be JITted more easily. This is not really necessary, since you could just use 512 bytes for the mapping, but memory tradeoffs were different back then...
- unnah 3y agoIt was also how you fed the operation to the Amiga blitter hardware. A nice introduction to minterms for many teenage hackers at the time... (https://en.wikipedia.org/wiki/Canonical_normal_form#Minterm https://en.wikipedia.org/wiki/Canonical_normal_form#Minterm)