![]() |
Routines |
| Prev: 26478 | Up: Map | Next: 26529 |
|
Passes when a value stirred from the frame counter and the signature comes out below the parameter.
|
||||||||||||
| RandomTest | 26487 | LD A,(26478) | Plant the signature byte over the displacement at 26499. | |||||||||
| 26490 | LD (26499),A | |||||||||||
| 26493 | LD IX,26478 | Point IX at Signature. | ||||||||||
| 26497 | LD A,(IX+0) | Fetch the stirred byte. | ||||||||||
| 26500 | LD L,A | Widen the stirred byte. | ||||||||||
| 26501 | LD H,0 | |||||||||||
| 26503 | ADD HL,HL | Times four. | ||||||||||
| 26504 | ADD HL,HL | |||||||||||
| 26505 | PUSH HL | Stash that product on the stack. | ||||||||||
| 26506 | ADD HL,HL | Shift further. | ||||||||||
| 26507 | ADD HL,HL | |||||||||||
| 26508 | ADD HL,HL | |||||||||||
| 26509 | PUSH HL | Stash that product on the stack. | ||||||||||
| 26510 | ADD HL,HL | Double once more. | ||||||||||
| 26511 | POP DE | Restore the first product from the stack. | ||||||||||
| 26512 | ADD HL,DE | Add both saved products. The mix is the byte times 100. | ||||||||||
| 26513 | POP DE | |||||||||||
| 26514 | ADD HL,DE | |||||||||||
| 26515 | LD A,(23672) | Fetch FRAMES. | ||||||||||
| 26518 | AND %00000111 | Keep only bits 0-2. | ||||||||||
| 26520 | INC A | Write that value plus 1 into the signature at Signature. | ||||||||||
| 26521 | LD (26478),A | |||||||||||
| 26524 | LD A,H | Jump to RejectCondition to reject this bytecode condition. | ||||||||||
| 26525 | CP B | |||||||||||
| 26526 | JR NC,RejectCondition | |||||||||||
| 26528 | RET | Return. | ||||||||||
| Prev: 26478 | Up: Map | Next: 26529 |