Commit d2cbc701 authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

bank/description: memprefix

parent a81781f5
...@@ -5,6 +5,11 @@ def regprefix(prefix, registers): ...@@ -5,6 +5,11 @@ def regprefix(prefix, registers):
register.name = prefix + register.name register.name = prefix + register.name
return registers return registers
def memprefix(prefix, memories):
for memory in memories:
memory.name_override = prefix + memory.name_override
return memories
class RegisterRaw: class RegisterRaw:
def __init__(self, name, size=1): def __init__(self, name, size=1):
self.name = name self.name = name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment