From 080d630d2e920c4b1fafb32c918b05258aff8e54 Mon Sep 17 00:00:00 2001 From: Kolby Heacock Date: Sat, 29 Nov 2025 20:28:34 -0700 Subject: [PATCH] Add instruction definition for number to bytevector conversion --- hyphae/vm.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hyphae/vm.toml b/hyphae/vm.toml index b445a25..c33aecf 100644 --- a/hyphae/vm.toml +++ b/hyphae/vm.toml @@ -641,6 +641,20 @@ character byte. Requires mutable access to input address. """ +[[instructions]] +name = "ntobv" +args = ["src"] +output = "" +description = """ +The ntobv instruction accepts a single number input. This operand is overwritten +by a new number datum that represents the inexact form of the source number. + +The inexact form is a normalization of fraction or scientific notation datum to +float datum casted to ByteVector datum. + +Requires mutable access to input address. +""" + [[instructions]] name = "ntoc" args = ["src"]