Template Class WriteOwnStateIf

Class Documentation

template<typename DishSpec>
class dish2::WriteOwnStateIf

If reg[arg_1] is nonzero, stores reg[arg_0] into a target writable state.

To determine the target writable state, interprets the first bits of the instruction tag as an unsigned integer then calculates the remainder of integer division by the number of writable states.

Public Static Functions

template<typename SgplSpec>
void run(sgpl::Core<SgplSpec> &core, const sgpl::Instruction<SgplSpec> &inst, const sgpl::Program<SgplSpec>&, typename SgplSpec::peripheral_t &peripheral) noexcept
std::string name()
size_t prevalence()
template<typename SgplSpec>
auto descriptors(const sgpl::Instruction<SgplSpec> &inst)
template<typename SgplSpec>
auto categories(const sgpl::Instruction<SgplSpec> &inst)