-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandInfo.cs
More file actions
43 lines (35 loc) · 1.15 KB
/
Copy pathCommandInfo.cs
File metadata and controls
43 lines (35 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System.Collections.Generic;
namespace Emulator
{
public enum CommandArgumentType
{
RegisterName = 0,
Int8 = 1,
Int16 = 2,
RegisterPairName = 4,
}
public class CommandInfo
{
public string OpCode = "0";
public List<CommandArgumentType> Arguments = new List<CommandArgumentType>();
public Dictionary<int, int>? RegisterNameArgumentOffsets;
/// <summary>
/// User written note that explains what this command does
/// </summary>
public string? Note;
}
public class ProcessorCommandsInfo
{
public Dictionary<string, CommandInfo> Commands = new Dictionary<string, CommandInfo>();
/// <summary>
/// Operations that take label as an argument<para/>
/// used for assembly time checks
/// </summary>
public List<string> JumpCommands = new List<string>();
/// <summary>
/// Operations that have their destination written in the code itself<para/>
/// used for assembly time checks
/// </summary>
public List<string> StaticAddressCommands = new List<string>();
}
}