Skip to content

TapFile.CreateCode Method

Overloads

Name Description
CreateCode(String, UInt16, IEnumerable<Byte>) Creates a TAP file containing a single code block.
CreateCode(String, IEnumerable<ValueTuple<UInt16, Byte[]>>) Creates a TAP file containing multiple code blocks.

CreateCode(String, UInt16, IEnumerable<Byte>)

Creates a TAP file containing a single code block.

public static TapFile CreateCode(string filename, ushort location, IEnumerable<Byte> data);

View source

Parameters

Name Type Description
filename String The filename for the code block.
location UInt16 The memory location to load the code to.
data IEnumerable<Byte> The code data.

Returns

TapFile

A new TapFile containing the code block.

CreateCode(String, IEnumerable<ValueTuple<UInt16, Byte[]>>)

Creates a TAP file containing multiple code blocks.

public static TapFile CreateCode(string filename, params IEnumerable<ValueTuple<ushort, Byte[]>> codeBlocks);

View source

Parameters

Name Type Description
filename String The filename for the code blocks.
codeBlocks IEnumerable<ValueTuple<UInt16, Byte[]>> The code blocks, each with a memory location and data.

Returns

TapFile

A new TapFile containing the code blocks.