ZXHawk: TZX block 0x19 - added correct length placeholder - #1158

This commit is contained in:
Asnivor 2018-03-26 08:37:18 +01:00
parent 5f71e2428c
commit b0ae89f924
1 changed files with 32 additions and 1 deletions

View File

@ -697,7 +697,38 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
---- */
private void ProcessBlockID19(byte[] data)
{
string test = "dgfg";
// not currently implemented properly
TapeDataBlock t = new TapeDataBlock();
t.BlockID = 0x19;
t.BlockDescription = BlockType.Generalized_Data_Block;
t.DataPeriods = new List<int>();
int blockLen = GetInt32(data, _position);
_position += 4;
int pause = GetWordValue(data, _position);
_position += 2;
int totp = GetInt32(data, _position);
_position += 4;
int npp = data[_position++];
int asp = data[_position++];
int totd = GetInt32(data, _position);
_position += 4;
int npd = data[_position++];
int asd = data[_position++];
// add the block
_datacorder.DataBlocks.Add(t);
// advance the position to the next block
_position += blockLen;
}
#endregion