mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-06-02 16:41:33 +00:00
63ef445a78
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
18 lines
550 B
C#
18 lines
550 B
C#
// <copyright file="RegisterState.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
namespace Fuse
|
|
{
|
|
using System;
|
|
using System.Globalization;
|
|
|
|
public class RegisterState : AbstractRegisterState, IRegisterState
|
|
{
|
|
protected override void ParseInternalState(string[] tokens)
|
|
{
|
|
this.Halted = Convert.ToInt32(tokens[0], CultureInfo.InvariantCulture) == 1;
|
|
this.TStates = Convert.ToInt32(tokens[1], CultureInfo.InvariantCulture);
|
|
}
|
|
}
|
|
}
|