libs.cat

memory

memory(self, rows:int, columns:int)

Class that simulates the memory

update

memory.update(self, target:int, destination:int)

Updates the cell at the given memory position.

stitch

memory.stitch(self, start:int, instructionSet:list)

This function writes machine instrucions to memory.

formattedAccess

memory.formattedAccess(self, rowC:int, columnC:int)

Returns the value of a cell formated as 02X

access

memory.access(self, cellNum:int)

Returns the value of the memory cell at the given memory cell.

registers

registers(self, register_numbers:int)

Registers.

update

registers.update(self, targetRegister:int, value:int)

Update the register at a given point.

access

registers.access(self, targetRegister:int)

Returns the value at the given register.

controlUnit

controlUnit(self)

Class that defines the Control Unit

apply

controlUnit.apply(self, registers_:libs.cat.registers, memory_:libs.cat.memory)

This calls the necessary functions to execute to machine code.