![]() |
Routines |
| Prev: 27112 | Up: Map | Next: 27134 |
|
Adds A to flag B, sticking at 255 instead of wrapping.
|
||||||||||
| AddToFlag | 27124 | CALL FlagAddress | Point at flag B and add A. | |||||||
| 27127 | ADD A,(HL) | |||||||||
| 27128 | JR NC,AddFlag_Store | The sum sticks at 255. | ||||||||
| 27130 | LD A,255 | |||||||||
| AddFlag_Store | 27132 | LD (HL),A | Store it. | |||||||
| 27133 | RET | Return. | ||||||||
| Prev: 27112 | Up: Map | Next: 27134 |