Thanks iq, i would need a little tool.
It´s similar to your s descrambler tool, but you should be able to use the swap as parameter instead of a predefined table when you know the swap but not the protection, for example if i need a new swap 8 like this....
rom = BITSWAP8(rom, 0, 6, 5, 4, 3, 2, 1, 7)
the usage should be
"swap 8 0,6,5,4,3,2,1,7"
The first number should be the swap type, and the second separated by an space from the swap type and separated by , between them is the kind of moves that should be made.
This tool + bswap8 could make very easy to decrypt every new rom using the original + the encrypted, even if the swap was not programed in the tool like it was in S_decrypt
Thanks