CPU Simulator
    Preparing search index...

    This class represents an 32-bit instruction.

    Erik Burmester erik.burmester@nextbeam.net

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    MAX_NEGATIVE_NUMBER_DEC: number = -2_147_483_648
    MAX_POSITIVE_NUMBER_DEC: number = 2_147_483_647
    NUMBER_OF_BITS_DEC: number = 32
    _value: Bit[]

    An array of bits, representing a binary value.

    Accessors

    Methods

    • For comparison, both binary values are converted to strings. Conversion presarves the order of items, which is important for the comparison.

      Parameters

      Returns boolean

      True, when both binary values are identical, false otherwise.

    • Converts the binary value into a string representation.

      Parameters

      • groupBytes: boolean = false

      Returns string

      The string representation of the binary value.