Skip to content

NexFile.CreateCode Method ​

Definition ​

Creates a NEX file containing code banks, with no loading screens, palette or copper code.

c#
public static NexFile CreateCode(IEnumerable<ValueTuple<int, Byte[]>> banks, ushort pc, ushort sp, ZXColour borderColour = ZXColour.MrKWatkins.OakIO.ZXSpectrum.Snapshot.ZXColour, NexRamRequired ramRequired = NexRamRequired.MrKWatkins.OakIO.ZXSpectrumNext.Snapshot.Nex.NexRamRequired);

View source

Parameters ​

NameTypeDescription
banksIEnumerable<ValueTuple<Int32, Byte[]>>The banks to include, each with a bank number and up to 16384 bytes of data; shorter data is zero padded to a full bank.
pcUInt16The program counter to start execution at.
spUInt16The initial stack pointer.
borderColourZXColourThe border colour whilst loading.
ramRequiredNexRamRequiredThe RAM the file requires.

Returns ​

NexFile

A new NexFile containing the banks.