Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Fix

  • Loading branch information...
commit 14a2b889c51eb4cbe1a4a6f39f046d018c74428a 1 parent 6be4b09
@tgiphil tgiphil authored
Showing with 13 additions and 13 deletions.
  1. +13 −13 Source/Mosa.Platform.x86/SegmentRegister.cs
View
26 Source/Mosa.Platform.x86/SegmentRegister.cs
@@ -26,34 +26,34 @@ public sealed class SegmentRegister : Register
public enum SegmentType
{
/// <summary>
- /// The x86 DS register instruction encoding.
+ /// The x86 ES register instruction encoding.
/// </summary>
- DS = 3,
+ ES = 0,
/// <summary>
- /// The x86 ES register instruction encoding.
+ /// The x86 CS register instruction encoding.
/// </summary>
- ES = 0,
+ CS = 1,
/// <summary>
- /// The x86 FS register instruction encoding.
+ /// The x86 SS register instruction encoding.
/// </summary>
- FS = 4,
+ SS = 2,
/// <summary>
- /// The x86 GS register instruction encoding.
+ /// The x86 DS register instruction encoding.
/// </summary>
- GS = 5,
+ DS = 3,
/// <summary>
- /// The x86 SS register instruction encoding.
+ /// The x86 FS register instruction encoding.
/// </summary>
- SS = 2,
+ FS = 4,
/// <summary>
- /// The x86 CS register instruction encoding.
+ /// The x86 GS register instruction encoding.
/// </summary>
- CS = 1,
+ GS = 5
}
#endregion // Types
@@ -124,7 +124,7 @@ public enum SegmentType
/// </summary>
public override int RegisterCode
{
- get { return base.Index; }
+ get { return (int)segment; }
}
/// <summary>
Please sign in to comment.
Something went wrong with that request. Please try again.