Skip to content

Commit 67e4793

Browse files
committed
bug offsets
1 parent 65c8982 commit 67e4793

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mame/sinclair/spec_snqk.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ void spectrum_state::hrust_decompress_block(address_space &space, const u8 *sour
24852485

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

2488-
short offset = 0;
2488+
s16 offset = 0;
24892489
if (len == 0)
24902490
{
24912491
offset = 0xfff8 + bitbuf.get_bits(3);
@@ -2829,7 +2829,7 @@ void spectrum_state::setup_spg(const u8 *snapdata, u32 snapsize)
28292829
{
28302830
case 0x00:
28312831
for (auto i = 0; i < size; i++)
2832-
space.write_byte(0xc000 + i, snapdata[data_offset + i]);
2832+
space.write_byte(0xc000 + offs + i, snapdata[data_offset + i]);
28332833
break;
28342834

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

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

28432843
default:
28442844
logerror("Unsupported compression: %d\n", compression);

0 commit comments

Comments
 (0)