|  | Routines | 
| Prev: 39520 | Up: Map | Next: 39558 | 
| 
Used by the routines at ControlMethod_InterfaceTwo and ControlMethod_Cursor.
 | ||||
| Controls | 39535 | LD B,1 | B=1. | |
| 39537 | LD HL,39511 | HL=39511. | ||
| 
This entry point is used by the routines at ControlMethod_InterfaceTwo and ControlMethod_Cursor.
 | ||||
| Controls_0 | 39540 | LD A,(HL) | A=*HL. | |
| 39541 | INC HL | Increment HL by one. | ||
| 39542 | IN A,(254) | A=byte from port 254. | ||
| 39544 | AND (HL) | Merge the bits from *HL. | ||
| 39545 | INC HL | Increment HL by two. | ||
| 39546 | INC HL | |||
| 39547 | JR NZ,Controls_1 | Jump to Controls_1 if HL is not equal to *HL. | ||
| 39549 | SCF | Set the carry flag. | ||
| Controls_1 | 39550 | RL B | Rotate B left. | |
| 39552 | JR NC,Controls_0 | Jump to Controls_0 if HL is greater than or equal to *HL. | ||
| 39554 | LD A,B | A=B. | ||
| 39555 | OR C | Set the bits from C. | ||
| 39556 | LD C,A | C=A. | ||
| 39557 | RET | Return. | ||
| Prev: 39520 | Up: Map | Next: 39558 |