Skip to content

Commit

Permalink
#2 Added GraphicsMode enum
Browse files Browse the repository at this point in the history
  • Loading branch information
hagronnestad committed Mar 29, 2020
1 parent a7e619e commit 32facd3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions ComputerSystems/Commodore64/Commodore64.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<Compile Include="C64MemoryValues.cs" />
<Compile Include="C64MemoryOffsets.cs" />
<Compile Include="Colors.cs" />
<Compile Include="Enums\GraphicsMode.cs" />
<Compile Include="Enums\PetsciiCode.cs" />
<Compile Include="FormC64Screen.cs">
<SubType>Form</SubType>
Expand Down
17 changes: 17 additions & 0 deletions ComputerSystems/Commodore64/Enums/GraphicsMode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Commodore64.Enums {

/// <summary>
/// GraphicsMode as defined by MCM (bit 4 in $D016), BMM (bit 5 in $D011) and ECM (bit 6 in $D011)
/// Source: https://www.c64-wiki.com/wiki/Graphics_Modes#Implementation
/// </summary>
public enum GraphicsMode {
StandardCharacterMode = 0b000,
MultiColorCharacterMode = 0b001,
StandardBitmapMode = 0b010,
MulticolorBitmapMode = 0b011,
ExtendedBackgroundColorMode = 0b100,
UNOFFICIAL_ExtendedBackgroundColorMulticolorCharacterMode = 0b101,
UNOFFICIAL_ExtendedBackgroundColorStandardBitmapMode = 0b110,
UNOFFICIAL_ExtendedBackgroundColorMulticolorBitmapMode = 0b111
}
}

0 comments on commit 32facd3

Please sign in to comment.