-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommand.cs
40 lines (39 loc) · 861 Bytes
/
Command.cs
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
using System;
using System.Collections.Generic;
using System.Text;
namespace i8008_asm
{
class Command
{
private string mnemonic;
private byte lengthInBytes;
private byte opcode;
public string Mnemonic
{
get
{
return this.mnemonic;
}
}
public byte LengthInBytes
{
get
{
return this.lengthInBytes;
}
}
public byte Opcode
{
get
{
return this.opcode;
}
}
public Command(string mnemonic_arg, byte lengthInBytes_arg, byte opcode_arg)
{
this.mnemonic = mnemonic_arg;
this.lengthInBytes = lengthInBytes_arg;
this.opcode = opcode_arg;
}
}
}