Prev: 33589 Up: Map Next: 33610
33600: ResetScriptPtr
Resets the ROM-traversal script pointer to its starting address. Reads the low word of the ZX system variable FRAMES from 23672 ($5C78, the 50 Hz frame counter stepped by the ROM's interrupt handler — this is what makes each run's script time-dependent), calls the address-masking helper at 45290 to fold it into ROM range (e.g. $9041 → $1041), and stores the result at 31265.
Used by the routines at 36457 and 45222.
33600 LD HL,(23672) HL = FRAMES (23672): the ZX ROM's 50 Hz frame counter
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