use bit_struct::{i4, u4};

/// The integer used for storing memory offsets.
pub type MemOffsetRepr = i4;

/// The unsigned integer used for storing memory offset.
pub type UnsignedMemOffsetRepr = u4;

/// A struct containing a signed 4-bit integer for storing a memory offset.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct MemoryOffset(pub MemOffsetRepr);
