| jetpac | Routines | 
| Prev: 6e66 | Up: Map | Next: 6e87 | 
| 
 
Two buffers are used for sprites facing the opposite direction so we need to flip the bits such that %00100111 becomes %11100100.
 
 | 
||||
| 6e7c | push bc | Backup BC | ||
| 6e7d | ld b,$08 | Counter of 8-bits | ||
| 6e7f | rrca | Do the bit reversal | ||
| 6e80 | rl c | |||
| 6e82 | djnz $6e7f | |||
| 6e84 | ld a,c | Set return value | ||
| 6e85 | pop bc | Restore BC | ||
| 6e86 | ret | |||
| Prev: 6e66 | Up: Map | Next: 6e87 |