#!/usr/bin/env python2
# I, Danny Milosavljevic, hereby place this file into the public domain.

# interface, not a chip.

class Memory(object):
    def __init__(self):
        self.B_can_write = True # in the instance because of ShedSkin
    def read_memory(self, address, size = 1):
        return 0xFF
    def write_memory(self, address, value, size):
        pass

def one_big_value(part):
    assert len(part) <= 4, "Memory.one_big_value: len(part)<=4"
    f = 0
    v = 0
    for c in part:
        v = v | (c << f)
        f += 8
    return v
