Implementing PTReplay PTSongPattern
Hi,
I am currently trying to implement PTSongPattern in Fredrik Wikstrom's ptreplay library for AmigaOS 4.1. I peaked (=disassembled) the m68k version of it (6.6) and came up this this naive implementation: Code:
UBYTE _PTReplay_PTSongPattern(struct PTReplayIFace *Self, Any help would be greatly appreciated. Thanks, Flynn |
Should be ok. The "song arrangement list" with all pattern-numbers is indeed at offset 952. Those are constants which should never change, so you can read them any time.
Although there is a maximum of 128 positions, so I would better check Posagainst 128 instead of the module's file size. |
Thank you very much. The information that there are max 128 positions is really helpful. I updated the code with your suggestion and I am testing the new library at the moment.
|
All times are GMT +2. The time now is 17:28. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.