![]() |
Routines |
| Prev: 676E | Up: Map | Next: 67A1 |
|
Passes when a value stirred from the frame counter and the signature comes out below the parameter.
|
||||||||||||
| RandomTest | 6777 | LD A,($676E) | Plant the signature byte over the displacement at 6783. | |||||||||
| 677A | LD ($6783),A | |||||||||||
| 677D | LD IX,$676E | Point IX at Signature. | ||||||||||
| 6781 | LD A,(IX+$00) | Fetch the stirred byte. | ||||||||||
| 6784 | LD L,A | Widen the stirred byte. | ||||||||||
| 6785 | LD H,$00 | |||||||||||
| 6787 | ADD HL,HL | Times four. | ||||||||||
| 6788 | ADD HL,HL | |||||||||||
| 6789 | PUSH HL | Stash that product on the stack. | ||||||||||
| 678A | ADD HL,HL | Shift further. | ||||||||||
| 678B | ADD HL,HL | |||||||||||
| 678C | ADD HL,HL | |||||||||||
| 678D | PUSH HL | Stash that product on the stack. | ||||||||||
| 678E | ADD HL,HL | Double once more. | ||||||||||
| 678F | POP DE | Restore the first product from the stack. | ||||||||||
| 6790 | ADD HL,DE | Add both saved products. The mix is the byte times 64. | ||||||||||
| 6791 | POP DE | |||||||||||
| 6792 | ADD HL,DE | |||||||||||
| 6793 | LD A,($5C78) | Fetch FRAMES. | ||||||||||
| 6796 | AND %00000111 | Keep only bits 0-2. | ||||||||||
| 6798 | INC A | Write that value plus 01 into the signature at Signature. | ||||||||||
| 6799 | LD ($676E),A | |||||||||||
| 679C | LD A,H | Jump to RejectCondition to reject this bytecode condition. | ||||||||||
| 679D | CP B | |||||||||||
| 679E | JR NC,RejectCondition | |||||||||||
| 67A0 | RET | Return. | ||||||||||
| Prev: 676E | Up: Map | Next: 67A1 |