WIP: Adding BVTON instruction to convert from ByteVector to Number

This commit is contained in:
Kolby Heacock 2025-12-03 20:26:52 -07:00 committed by Ava Apples Affine
parent d008ce8060
commit 333beba0bb
2 changed files with 30 additions and 3 deletions

View file

@ -655,6 +655,20 @@ float datum casted to ByteVector datum.
Requires mutable access to input address.
"""
[[instructions]]
name = "bvton"
args = ["src"]
output = ""
description = """
The bvton instruction accepts a byte vector input. This operand is overwritten
by a new number datum that represents the inexact form of the source byte vector.
The normalized fraction or scientific notation data represented in a
ByteVector datum is casted to an inexact floating point number.
Requires mutable access to input address.
"""
[[instructions]]
name = "ntoc"
args = ["src"]