Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def load_program(self, start_addr, program):
- if type(program) is not np.ndarray:
- raise ValueError()
- elif type(program[0]) is not np.uint32:
- raise ValueError()
- self.mem[start_addr:start_addr + len(program)] = program
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement