Beispiel #1
0
	def __init__(self, transpiler, opcode, params = []):
		self.transpiler = transpiler
		base = int(params[0].raw, 0)
		offset = int(params[1].raw, 0)
		if offset >= base:
			raise ValueError("Offset >= Base for align")
		cur_offset = transpiler.bpos % base
		if offset < cur_offset:
			offset += base
		self.align_len = offset - cur_offset
		Instruction.__init__(self, transpiler, opcode)
 def __init__(self, value):
     Instruction.__init__(self, value)
Beispiel #3
0
	def __init__(self, transpiler, opcode, params = []):
		Instruction.__init__(self, transpiler, opcode, params)