twelve_bit
A Rust library for representing 12-bit unsigned values. This is primarily useful for implementing Chip-8 assemblers and interpreters safely. The type implements bulk of the standard Rust literal semantics and operators, and much of the documentation is adapted from the u16 intrinsic type.
Usage
Add the following to your Cargo.toml
:
[]
= "0.1"
In addition, and this to your crate root:
extern crate twelve_bit;
Here is an example demonstrating how to interact with the unsigned 12-bit data type U12
.
extern crate twelve_bit;
use *;
Missing Features
- Support for
ShlAssign
andShrAssign
. - Support for bitwise assignment traits.
- Support for
U12::from_str_radix()
. - Support for
Display
,UpperHex
,LowerHex
,Octal
andBinary
. - Support for
Hash
. - Support for
Step
.
License
twelve_bit
is distributed under the terms of the MIT license.
See LICENSE for details.