pub struct Screen { /* private fields */ }
Expand description

512x256 black-and-white screen which behaves like a Ram8k.

Implementations

Carries out the simulation, taking as input:

  • inp: data input
  • load: whether to write inp into the RAM
  • address: which register to select

It returns the value stored at address. Furthermore, when load is HI, inp is written at location address, and the loaded value will be emitted from the next time step onward.

The pixel at row r from the top and column c from the left, is mapped onto the c % 16 bit (from LSB to MSB) of the 16-bit word stored at address r * 32 + c / 16.

Trait Implementations

Returns the “default value” for a type. Read more
Carries out the tick-phase of a clock cycle: LOW
Evaluates the logic expression as we do with arithmetic without advancing the time. Read more
Carries out the tock-phase of a clock cycle: HIGH

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.