diff --git a/Core/ComponentType.cs b/Core/ComponentType.cs index ed1cfb0..afeebac 100644 --- a/Core/ComponentType.cs +++ b/Core/ComponentType.cs @@ -5,12 +5,31 @@ using System.Text; namespace Core { + // instruction set framework public enum ComponentType { - EQ_ADD, - EQ_SUB, - EQ_DIV, - EQ_MUL, - QZ_VAR + NVAR, // Sets a variable and its value + RVAR, // Removes a variable + SVAR, // Sets a variables value + LDA, // Loads a memory value into ram + STA, // Seeks to a memory value into the accumulator + LDX, // Loads accumulator into X + LDY, // Loads accumulator into Y + STX, // Stores X into accumulator + STY, // Stores Y into accumulator + SEA, // Sets accumulator + ADD, // Adds X + Y then stores in Accumulator + SUB, // Subtracts X - Y then stores in Accumulator + MUL, // Multiplies X * Y then stores in Accumulator + DIV, // Divides X / Y then stores in Accumulator + JZE, // Jumps to a pointer in the program on zero flag + JMP, // Jumps to a pointer in the program + SFG, // Sets a flag to true + RFG, // Sets a flag to false + PRA, // Prints accumulator + PRX, // Prints X + PRY, // Prints Y + PRM, // Prints value of memory address + HLT // Halts execution } } diff --git a/Core/Core.csproj b/Core/Core.csproj index 70dcc65..d075fed 100644 --- a/Core/Core.csproj +++ b/Core/Core.csproj @@ -34,6 +34,9 @@ false + + ..\packages\ppy.SDL2-CS.1.0.82\lib\netstandard2.0\SDL2-CS.dll + @@ -44,11 +47,18 @@ - + + + + + + + +