From 18868128e18d38b706e7df14e8e683e1a9739c17 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:49:22 +1000 Subject: chore: Initial commit --- Q1.core/Arch/IInstruction.cs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Q1.core/Arch/IInstruction.cs (limited to 'Q1.core/Arch/IInstruction.cs') diff --git a/Q1.core/Arch/IInstruction.cs b/Q1.core/Arch/IInstruction.cs new file mode 100644 index 0000000..2889937 --- /dev/null +++ b/Q1.core/Arch/IInstruction.cs @@ -0,0 +1,35 @@ +namespace Q1.core.Arch; + +public interface IInstruction +{ + public string Name { get; } +} + +public record struct ImplicitInstruction : IInstruction +{ + public string Name { get; set; } + + public Action Execute; +} + +public record struct SimpleInstruction : IInstruction +{ + public string Name { get; set; } + + public Action Execute; +} + +public record struct ExtendedInstruction : IInstruction +{ + public string Name { get; set; } + + public Action Execute; +} + +public record struct InstructionGroup +{ + public ImplicitInstruction Implicit; + public SimpleInstruction SimpleAddressing; + public ImplicitInstruction ExtendedImplicit; + public ExtendedInstruction ExtendedAddressing; +} \ No newline at end of file -- cgit v1.3.1