Disammbler und Simulator angepasst. Arrays begonnen (defunct)
This commit is contained in:
@ -40,6 +40,9 @@ public static class Bytecode {
|
||||
public const byte JZ = 0x70;
|
||||
public const byte JMP = 0x71;
|
||||
|
||||
// Array operations
|
||||
public const byte ARRAY_BOUNDS_CHECK = 0xE0;
|
||||
|
||||
public const byte HALT = 0xF0;
|
||||
}
|
||||
|
||||
@ -63,6 +66,7 @@ public static class Bytecode {
|
||||
{ OpCodes.LT_U, "LT_U" }, { OpCodes.GT_U, "GT_U" }, { OpCodes.LE_U, "LE_U" }, { OpCodes.GE_U, "GE_U" }, { OpCodes.EQ_U, "EQ_U" }, { OpCodes.NEQ_U, "NEQ_U" },
|
||||
{ OpCodes.LT_F, "LT_F" }, { OpCodes.GT_F, "GT_F" }, { OpCodes.LE_F, "LE_F" }, { OpCodes.GE_F, "GE_F" }, { OpCodes.EQ_F, "EQ_F" }, { OpCodes.NEQ_F, "NEQ_F" },
|
||||
{ OpCodes.JZ, "JZ" }, { OpCodes.JMP, "JMP" },
|
||||
{ OpCodes.ARRAY_BOUNDS_CHECK, "ARRAY_BOUNDS_CHECK" },
|
||||
{ OpCodes.HALT, "HALT" }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user