I am writing data to a p8 file from a Python program - format for 0x0-0x3200 ROM range is ok.
Issue is sfx section - each sfx (68 bytes) is actually written as 84 bytes (??) with empty bits left and right.
I have no clue what is the masking/bitshifting/... logic between my input value and the resulting p8 string.
Example:
poke4(0x3200,0x1234.5678) cstore() |
produces:
__sfx__ 000100003813534011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
wtf??



The .p8 sfx format is
4 2-char hex values:
editor mode
spd
loop start
loop end
Followed by 32 5-char groups:
pitch (2 chars) 00..3f
instrument (0..7, 8..f for sfx inst)
volume 0..7
effect 0..7
[Please log in to post a comment]