eight_bit_computer.operations.progstore_op module

The PROGSTORE operation.

Stores a value from a module into memory

eight_bit_computer.operations.progstore_op.generate_microcode_templates()[source]

Generate microcode for all the PROGSTORE instructions.

Returns:DataTemplates for all the PROGSTORE instructions.
Return type:list(DataTemplate)
eight_bit_computer.operations.progstore_op.generate_signatures()[source]

Generate the definitions of all possible arguments passable.

Returns:All possible arguments. See get_arg_def_template() for more information.
Return type:list(list(dict))
eight_bit_computer.operations.progstore_op.generate_operation_templates(signature)[source]

Create the DataTemplates to define a progstore with the given args.

Parameters:signature (list(dict)) – List of argument definitions that specify which particular progstore operation to generate templates for.
Returns:Datatemplates that define this progstore.
Return type:list(DataTemplate)
eight_bit_computer.operations.progstore_op.generate_instruction_byte_bitdefs(signature)[source]

Generate bitdefs to specify the instruction byte for these args.

Parameters:signature (list(dict)) – List of argument definitions that specify which particular PROGSTORE operation to generate the instruction byte bitdefs for.
Returns:Bitdefs that make up the instruction_byte
Return type:list(str)
eight_bit_computer.operations.progstore_op.generate_control_steps(signature)[source]

Generate control steps for these args.

Parameters:signature (list(dict)) – List of argument definitions that specify which particular store operation to generate the control steps for.
Returns:List of list of bitdefs that specify the control steps.
Return type:list(list(str))
eight_bit_computer.operations.progstore_op.parse_line(line)[source]

Parse a line of assembly code to create machine code byte templates.

If a line is not identifiably a STORE assembly line, return an empty list instead.

Parameters:line (str) – Assembly line to be parsed.
Returns:List of machine code byte template dictionaries or an empty list.
Return type:list(dict)