![]()  | 
Routines | 
| Prev: 41289 | Up: Map | Next: 41325 | 
| 
 
Used by the routine at 41396.
 
 | 
||||
| 41301 | PUSH AF | Stash AF on the stack. | ||
| 41302 | LD A,L | A=L. | ||
| 41303 | AND %00000111 | Keep only bits 0-2. | ||
| 41305 | LD C,A | C=A. | ||
| 41306 | LD B,3 | B=3. | ||
| 41308 | SRL H | Shift H right. | ||
| 41310 | RR L | Rotate L right. | ||
| 41312 | DJNZ 41308 | Decrease counter by one and loop back to 41308 until counter is zero. | ||
| 41314 | POP AF | Restore AF from the stack. | ||
| 41315 | RET | Return. | ||
| 41316 | SRL H | Shift H right. | ||
| 41318 | RR L | Rotate L right. | ||
| 41320 | SRL H | Shift H right. | ||
| 41322 | RR L | Rotate L right. | ||
| 41324 | RET | Return. | ||
| Prev: 41289 | Up: Map | Next: 41325 |