Bitwise IO: Difference between revisions

m
→‎Compressing a String of ASCII Zeroes and Ones: typo fix, removed unnecessary steps
m (→‎{{header|Z80 Assembly}}: simplified label names)
m (→‎Compressing a String of ASCII Zeroes and Ones: typo fix, removed unnecessary steps)
Line 219:
loop_CompressBits:
LDA (z_BC),y
beq Terminated ; if the value read is equal to the null terminator, we are done.
AND #$0F ; returns either 0 or 1 in bit; 0. Therevalue is noassumed errorto checkingequal #$30 for invalid0 inputor at#$31 thefor moment1.
ror ; bottom bit of accumulator is rotated into the carry flag.
 
ror ; accumulator is rotated into the carry flag.
rol tempMath ; the carry is shifted into the bottom of tempMath.
; repeating this with each successive ascii bit representation
1,489

edits