/** * Extract the first CODE block from a ZX Spectrum .tap file. * * Tape format: * Each block is prefixed by a little-endian 2-byte length, then * `[flag, payload..., checksum]`. Flag 0x00 = header, 0xFF = data. * A type-3 header ("Code") carries the load address at payload * offset 14-15 and is followed by the corresponding data block. * * Callers load the file themselves (the library avoids file I/O in * core code): * * const { code, loadAddress } = * extractCodeFromTap(new Uint8Array(readFileSync('hello.tap'))) * createSpectrumTestbed({ regions: [[loadAddress, code]] }) */ export interface TapCode { code: Uint8Array; loadAddress: number; } export declare function extractCodeFromTap(data: Uint8Array): TapCode; //# sourceMappingURL=tap.d.ts.map