Number-to-ByteVector-conversion (#44)
Some checks failed
per-push tests / build (push) Failing after 33s
per-push tests / test-frontend (push) Has been skipped
per-push tests / timed-decomposer-parse (push) Has been skipped
per-push tests / test-utility (push) Has been skipped
per-push tests / test-backend (push) Has been skipped
Some checks failed
per-push tests / build (push) Failing after 33s
per-push tests / test-frontend (push) Has been skipped
per-push tests / timed-decomposer-parse (push) Has been skipped
per-push tests / test-utility (push) Has been skipped
per-push tests / test-backend (push) Has been skipped
# Number and ByteVector conversions Adds the following to isa conversions between data types, as well as tests for each: - `NTOBV` Number To ByteVector - takes a mutable memory address with a Number and replaces this value with a ByteVector of the same numerical value - `BVTON` ByteVector To Number - takes a mutable memory address with a ByteVector and replaces this value with a Number of the same numerical value as the ByteVector's value Reviewed-on: #44 Co-authored-by: Kolby Heacock <codeshiftster@gmail.com> Co-committed-by: Kolby Heacock <codeshiftster@gmail.com>
This commit is contained in:
parent
5582da5b41
commit
cc60e45fab
2 changed files with 70 additions and 9 deletions
|
|
@ -641,6 +641,34 @@ 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 = "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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue