Subchannel interpretation code (nw)

This commit is contained in:
Matt Nadareski
2021-11-29 16:32:36 -08:00
parent 7b0615a792
commit 34d985d481
7 changed files with 255 additions and 2 deletions

View File

@@ -100,4 +100,56 @@ namespace RedBookPlayer.Models
/// </summary>
FirstSessionOnly = 1,
}
/// <summary>
/// Known set of subchannel instructions
/// </summary>
/// <see cref="https://jbum.com/cdg_revealed.html"/>
public enum SubchannelInstruction : byte
{
/// <summary>
/// Set the screen to a particular color.
/// </summary>
MemoryPreset = 1,
/// <summary>
/// Set the border of the screen to a particular color.
/// </summary>
BorderPreset = 2,
/// <summary>
/// Load a 12 x 6, 2 color tile and display it normally.
/// </summary>
TileBlockNormal = 6,
/// <summary>
/// Scroll the image, filling in the new area with a color.
/// </summary>
ScrollPreset = 20,
/// <summary>
/// Scroll the image, rotating the bits back around.
/// </summary>
ScrollCopy = 24,
/// <summary>
/// Define a specific color as being transparent.
/// </summary>
DefineTransparentColor = 28,
/// <summary>
/// Load in the lower 8 entries of the color table.
/// </summary>
LoadColorTableLower = 30,
/// <summary>
/// Load in the upper 8 entries of the color table.
/// </summary>
LoadColorTableUpper = 31,
/// <summary>
/// Load a 12 x 6, 2 color tile and display it using the XOR method.
/// </summary>
TileBlockXOR = 38,
}
}