![]()  | 
Routines | 
| Prev: A149 | Up: Map | Next: A16D | 
| 
 
Used by the routine at A1B4.
 
 | 
||||
| A155 | PUSH AF | Stash AF on the stack. | ||
| A156 | LD A,L | A=L. | ||
| A157 | AND %00000111 | Keep only bits 0-2. | ||
| A159 | LD C,A | C=A. | ||
| A15A | LD B,$03 | B=03. | ||
| A15C | SRL H | Shift H right. | ||
| A15E | RR L | Rotate L right. | ||
| A160 | DJNZ $A15C | Decrease counter by one and loop back to A15C until counter is zero. | ||
| A162 | POP AF | Restore AF from the stack. | ||
| A163 | RET | Return. | ||
| A164 | SRL H | Shift H right. | ||
| A166 | RR L | Rotate L right. | ||
| A168 | SRL H | Shift H right. | ||
| A16A | RR L | Rotate L right. | ||
| A16C | RET | Return. | ||
| Prev: A149 | Up: Map | Next: A16D |