TapFile.CreateTapBas Method
Overloads
| Name | Description |
|---|---|
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);Parameters
| Name | Type | Description |
|---|---|---|
filename | String | The filename for the code block. |
location | UInt16 | The memory location to load the code to. |
data | Byte[] | The code data. |
entryPoint | UInt16? | The entry point address for a RANDOMIZE USR call, or null for none. |
Returns
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);Parameters
| Name | Type | Description |
|---|---|---|
filename | String | The name for code block headers. |
blocks | IReadOnlyList<TapBasBlock> | The blocks in tape loading order. Their data is copied into the file. |
options | TapBasOptions | Loader options, or null to use the defaults. |
Returns
A standard TAP file, also suitable for conversion to TZX or PZX.