dual_tape/vm.py
def _read_memory(vm_state: VMState, pc: Optional[int] = None) -> int:
    """
    info: Gets an data from memory.
    :param vm_state: VMState
    :param pc: Optional[int]
    :return: int
    """
    if pc is None:
        pc = vm_state.pc
    return vm_state.data.get(pc, 0)

    info: Gets an data from memory.
    :param vm_state: VMState
    :param pc: Optional[int]
    :return: int
    
Gets an data from memory.
Gets an data from memory .
def _read_memory(vm_state: VMState, pc: Optional[int] = None) -> int:
    if pc is None:
        pc = vm_state.pc
    return vm_state.data.get(pc, 0)
def _read_memory ( vm_state : VMState , pc : Optional [ int ] = None ) -> int : if pc is None : pc = vm_state . pc return vm_state . data . get ( pc , 0 )
info: Gets an data from memory.
info : Gets an data from memory .
"""
    info: Gets an data from memory.
    :param vm_state: VMState
    :param pc: Optional[int]
    :return: int
    """
None
vm_state
VMState
None
pc
Optional[int]
None