bank/description: memprefix

This commit is contained in:
Sebastien Bourdeauducq 2013-02-25 23:14:15 +01:00
parent a81781f589
commit d2cbc70190

View file

@ -5,6 +5,11 @@ def regprefix(prefix, registers):
register.name = prefix + register.name
return registers
def memprefix(prefix, memories):
for memory in memories:
memory.name_override = prefix + memory.name_override
return memories
class RegisterRaw:
def __init__(self, name, size=1):
self.name = name