Skip to content

Commit

Permalink
bug offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
holub committed Dec 25, 2024
1 parent 65c8982 commit 67e4793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mame/sinclair/spec_snqk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,7 @@ void spectrum_state::hrust_decompress_block(address_space &space, const u8 *sour

} while (bb == 0x03 && len != 0x0f);

short offset = 0;
s16 offset = 0;
if (len == 0)
{
offset = 0xfff8 + bitbuf.get_bits(3);
Expand Down Expand Up @@ -2829,7 +2829,7 @@ void spectrum_state::setup_spg(const u8 *snapdata, u32 snapsize)
{
case 0x00:
for (auto i = 0; i < size; i++)
space.write_byte(0xc000 + i, snapdata[data_offset + i]);
space.write_byte(0xc000 + offs + i, snapdata[data_offset + i]);
break;

case 0x01:
Expand All @@ -2838,7 +2838,7 @@ void spectrum_state::setup_spg(const u8 *snapdata, u32 snapsize)

case 0x02:
hrust_decompress_block(space, &snapdata[data_offset], 0xc000 + offs, size);
break;
break;

default:
logerror("Unsupported compression: %d\n", compression);
Expand Down

0 comments on commit 67e4793

Please sign in to comment.