From cf0c44e627a3d2520ff3fe9ea04f9ff741dfd364 Mon Sep 17 00:00:00 2001 From: Jesse Brault Date: Sat, 28 Dec 2024 16:42:43 -0600 Subject: [PATCH] Update of semantics of Move Register operation. --- doc/dvm.asciidoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/dvm.asciidoc b/doc/dvm.asciidoc index 79227ae..02353de 100644 --- a/doc/dvm.asciidoc +++ b/doc/dvm.asciidoc @@ -91,7 +91,7 @@ The operand is converted to a `bool` at runtime by the virtual machine. === Move Register -Copies the value in one register to another. +Moves or copies (see below) the value in one register to another. [source] ---- @@ -101,6 +101,9 @@ mov_register( ) ---- +For `Byte`, `Int`, `Long`, `USize`, `Double`, and `Boolean`, the value is **copied** to the register. For `Object` +values, the value is **moved**, meaning that register takes ownership of the referenced object. + === Load Loads the target register with the `DvmValue` inner value stored in the field at `field_index` in the object in the