Skip to content

TapFile.CreateTapBas Method ​

Overloads ​

NameDescription
CreateTapBas(String, UInt16, Byte[], UInt16?)Creates a TAP file with a TAP BAS style BASIC loader and a single code block.
CreateTapBas(String, IReadOnlyList<TapBasBlock>, TapBasOptions)Creates a TapBAS loader for ordered resident and optionally banked code blocks. Banked loads require a 128K Spectrum with unlocked paging and an accurate BANKM shadow at $5B5C.

CreateTapBas(String, UInt16, Byte[], UInt16?) ​

Creates a TAP file with a TAP BAS style BASIC loader and a single code block.

c#
public static TapFile CreateTapBas(string filename, ushort location, Byte[] data, ushort? entryPoint = null);

View source

Parameters ​

NameTypeDescription
filenameStringThe filename for the code block.
locationUInt16The memory location to load the code to.
dataByte[]The code data.
entryPointUInt16?The entry point address for a RANDOMIZE USR call, or null for none.

Returns ​

TapFile

A new TapFile with a BASIC loader followed by the code block.

CreateTapBas(String, IReadOnlyList<TapBasBlock>, TapBasOptions) ​

Creates a TapBAS loader for ordered resident and optionally banked code blocks. Banked loads require a 128K Spectrum with unlocked paging and an accurate BANKM shadow at $5B5C.

c#
public static TapFile CreateTapBas(string filename, IReadOnlyList<TapBasBlock> blocks, TapBasOptions? options = null);

View source

Parameters ​

NameTypeDescription
filenameStringThe name for code block headers.
blocksIReadOnlyList<TapBasBlock>The blocks in tape loading order. Their data is copied into the file.
optionsTapBasOptionsLoader options, or null to use the defaults.

Returns ​

TapFile

A standard TAP file, also suitable for conversion to TZX or PZX.