WIP implementing TZX support

This commit is contained in:
2026-04-30 17:43:20 +01:00
parent 5c7ccc02ff
commit bf3d7d228a
5 changed files with 101 additions and 0 deletions

24
Core/Io/TzxBlocks.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
namespace Core.Io
{
// The base class all future TZX blocks will inherit from
public abstract class TzxBlock
{
public abstract int BlockId { get; }
}
// ID 0x10: Standard Speed Data Block
public class StandardSpeedBlock : TzxBlock
{
public override int BlockId => 0x10;
// How long to pause the tape in milliseconds after this block loads
public ushort PauseAfterMs { get; set; }
public ushort DataLength { get; set; }
// The actual tape bytes
public byte[] Data { get; set; } = Array.Empty<byte>();
}
}