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);Parameters
| Name | Type | Description |
|---|---|---|
banks | IEnumerable<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. |
pc | UInt16 | The program counter to start execution at. |
sp | UInt16 | The initial stack pointer. |
borderColour | ZXColour | The border colour whilst loading. |
ramRequired | NexRamRequired | The RAM the file requires. |
Returns
A new NexFile containing the banks.