Prev: 61521 Up: Map Next: 61638
61625: Reverse the order of the bits in A
For example, if A is 3 (00000011) at input, then at output, A will be 192 (11000000).
Used by the routine at 61336.
Input
A A bitmap
Output
A A vertically mirrored bitmap
61625 PUSH BC Store BC
61626 LD B,8 Load B with 8 (eight bits)
61628 LD C,0 Load C with zero
61630 RRA Shift bit right out of A and into carry flag
61631 RL C Shift bit left out of carry flag and into C
61633 DJNZ 61630 Loop back to 61630 for next bit
61635 LD A,C Load modified bitmap back into A
61636 POP BC Restore BC
61637 RET Return
Prev: 61521 Up: Map Next: 61638