You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to decompress data behind the basic or the kernal ROM on a commodore 64.
If you are not familiar with the C64, in the shadowed areas, reads return the ROM data, writes go to the RAM under it.
Decompressing the exact same data to regular RAM and then using memcpy to the shadowed area work perfectly.
I suspect inflatemem reads from the destination area during decompression.
I looked at the inflatemem source but I can't figure out if my theory is correct.
I would really appreciate any help/insight you could provide.
The text was updated successfully, but these errors were encountered:
Yes, DEFLATE bases on LZSS, so it copies the previously uncompressed data.
You should either enable read access for your destination memory area or uncompress to a temporary area and memcpy afterwards.
I am trying to decompress data behind the basic or the kernal ROM on a commodore 64.
If you are not familiar with the C64, in the shadowed areas, reads return the ROM data, writes go to the RAM under it.
Decompressing the exact same data to regular RAM and then using memcpy to the shadowed area work perfectly.
I suspect inflatemem reads from the destination area during decompression.
I looked at the inflatemem source but I can't figure out if my theory is correct.
I would really appreciate any help/insight you could provide.
The text was updated successfully, but these errors were encountered: