PT2 Duration Calculator for Z80-based platforms Author Sergey Bulba Support page http://bulba.at.kz/ (c)2005 S.V.Bulba Release date: 26 of February 2005 Subject ------- Time caclutor idea is fast playing given module without sound and without synchronization with interrupts generator. Of course, Z80 processor is very slow for this task, so, we need maximally simplify player: remove all data analizing, except Tempo changing. So, we have now fast and small function (0.1 to 0.5 second and about 260 bytes) called 'PT2Time'. Using ----- Current compilation and sources are designed to call from ZX Basic. Load function to 32768 address, and PT2 module to 49152 address. After that type in basic PRINT USR 32768 and length of module in interrupts will be printed at screen. Actual length of module in seconds is a shown number divided by interrupt frequency (50 Hz for the most cases). You can use it with PT2.4 Phantom Family modules too (and you no need to load at its compilation address only). Files ----- PT2Time - compiled block to load at 32768 PT2Time.asm - assembler source, ORG can be changed to any address Limitations ----------- To speed up calculation process, I've removed all module structure and deadlock checkers, so, if you are trying use damaged modules or random data instead of real PT2, you can get a crash or deadlock. If you need add checkers from Ay_Emul GetTime function by yourself. Greets ------ Thanks Dioniso, this work especially for you! Sergey Bulba 26 of February 2005