eight_bit_computer.language_defs module

Defnitions for the machine code and microcode.

eight_bit_computer.language_defs.instruction_byte_from_bitdefs(bitdefs)[source]

Extract an instruction byte from the bitdefs that make it up.

If more than one bitdef is passed it will be merged with the others prior to extraction.

Parameters:list (bitdefs) – List of bitdefs to potentially merge and extract
Returns:Bitstring of the instruction byte
Return type:str