From 872865268b2db68422c0bfc3d8ccb91ae4ca4d65 Mon Sep 17 00:00:00 2001 From: zhangxun <1958638841@qq.com> Date: Sat, 28 Jun 2025 21:07:07 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jcnc/snow/vm/commands/type/conversion/D2SCommand.java | 4 ++-- .../org/jcnc/snow/vm/commands/type/conversion/S2DCommand.java | 4 ++-- .../org/jcnc/snow/vm/commands/type/conversion/S2FCommand.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/jcnc/snow/vm/commands/type/conversion/D2SCommand.java b/src/main/java/org/jcnc/snow/vm/commands/type/conversion/D2SCommand.java index ab11cf0..41a8cec 100644 --- a/src/main/java/org/jcnc/snow/vm/commands/type/conversion/D2SCommand.java +++ b/src/main/java/org/jcnc/snow/vm/commands/type/conversion/D2SCommand.java @@ -12,11 +12,11 @@ import org.jcnc.snow.vm.module.OperandStack; *

Execution Steps:

*
    *
  1. Pop the top double64 value from the operand stack.
  2. - *
  3. Convert the double64 value to an short16 value (this may involve truncation).
  4. + *
  5. Convert the double64 value to a short16 value (this may involve truncation).
  6. *
  7. Push the converted short16 value back onto the operand stack for subsequent operations.
  8. *
* - *

This opcode is used to narrow a double64 value to an short16 type for further integer-based operations.

+ *

This opcode is used to narrow a double64 value to a short16 type for further integer-based operations.

*/ public class D2SCommand implements Command { diff --git a/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2DCommand.java b/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2DCommand.java index 2f3381f..7703f26 100644 --- a/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2DCommand.java +++ b/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2DCommand.java @@ -12,11 +12,11 @@ import org.jcnc.snow.vm.module.OperandStack; *

Execution Steps:

*
    *
  1. Pop the top short16 value from the operand stack.
  2. - *
  3. Convert the short16 value to an double64 value.
  4. + *
  5. Convert the short16 value to a double64 value.
  6. *
  7. Push the converted double64 value back onto the operand stack for subsequent operations.
  8. *
* - *

This opcode is used to widen a short16 value to an double64 type, facilitating subsequent integer arithmetic or comparison operations.

+ *

This opcode is used to widen a short16 value to a double64 type, facilitating subsequent integer arithmetic or comparison operations.

*/ public class S2DCommand implements Command { diff --git a/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2FCommand.java b/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2FCommand.java index 78fbb4a..478e397 100644 --- a/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2FCommand.java +++ b/src/main/java/org/jcnc/snow/vm/commands/type/conversion/S2FCommand.java @@ -12,11 +12,11 @@ import org.jcnc.snow.vm.module.OperandStack; *

Execution Steps:

*
    *
  1. Pop the top short16 value from the operand stack.
  2. - *
  3. Convert the short16 value to an float32 value.
  4. + *
  5. Convert the short16 value to a float32 value.
  6. *
  7. Push the converted float32 value back onto the operand stack for subsequent operations.
  8. *
* - *

This opcode is used to widen a short16 value to an float32 type, facilitating subsequent integer arithmetic or comparison operations.

+ *

This opcode is used to widen a short16 value to a float32 type, facilitating subsequent integer arithmetic or comparison operations.

*/ public class S2FCommand implements Command {