Bitwise IO: Difference between revisions

m
→‎Uncompressing Packed Bytes into ASCII Zeroes and Ones: explained the "odd" choice of the revolving bit mask
m (→‎Uncompressing Packed Bytes into ASCII Zeroes and Ones: explained the "odd" choice of the revolving bit mask)
Line 3,420:
 
===Uncompressing Packed Bytes into ASCII Zeroes and Ones===
Code is optimized to use what I call a "revolving bit mask" since there is no way to iterate through <code>BIT</code> commands without self-modifying code which is even more difficult to read in my opinion. Using <code>BIT</code> tests without self-modifying code would require the loop to be unrolled.
<lang z80>StoreBinaryString:
;INPUT:
1,489

edits