Prev: 33589 Up: Map Next: 33610
33600: ResetScriptPtr
Resets the ROM-traversal script pointer to its starting address. Reads the SEED value from 23672 (ZX Spectrum system variable SEED, updated by RAND), calls the address-masking helper at 45290 to compute $1041 (ROM address $9041 with H masked to $10), and stores the result at 31265.
Input
Used by the routines at 36457 and 44880.
33600 LD HL,(23672) HL = SEED (23672): ZX ROM random seed value
33603 CALL 45290 mask H to $10: HL → ROM address in range $1000-$1FFF
33606 LD (31265),HL store as script pointer at 31265
33609 RET
Prev: 33589 Up: Map Next: 33610