diff --git a/src/main/java/org/jcnc/snow/vm/engine/VMOpCode.java b/src/main/java/org/jcnc/snow/vm/engine/VMOpCode.java index 73d8ed5..8e1a880 100644 --- a/src/main/java/org/jcnc/snow/vm/engine/VMOpCode.java +++ b/src/main/java/org/jcnc/snow/vm/engine/VMOpCode.java @@ -1,5 +1,6 @@ package org.jcnc.snow.vm.engine; +import org.jcnc.snow.vm.commands.system.control.SyscallCommand; import org.jcnc.snow.vm.commands.type.control.byte8.*; import org.jcnc.snow.vm.commands.type.control.double64.*; import org.jcnc.snow.vm.commands.type.control.float32.*; @@ -2646,8 +2647,18 @@ public class VMOpCode { * */ public static final int HALT = 0x0400; + /** + * SYSCALL Opcode: Represents a system call operation that invokes a system-level function or service. + *

This opcode is implemented by the {@link SyscallCommand} class, which defines its specific execution logic.

+ * + *

Execution Steps:

+ *
    + *
  1. Parses the system call identifier from the instruction parameters.
  2. + *
  3. Invokes the corresponding system-level function or service based on the system call identifier.
  4. + *
  5. Returns the result of the system call operation.
  6. + */ public static final int SYSCALL = 0x0401; - public static final int DEBUG_TRAP = 0x0402; +// public static final int DEBUG_TRAP = 0x0402; // endregion /**