Fixed naming bug

This commit is contained in:
pca006132 2020-07-29 14:29:32 +08:00
parent c862650e0d
commit 5711e584eb
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ def emit_rust(base_addr, ending_addr, registers):
fields.append('')
fields += lines
lines = []
code.append(f' pub {reg["name"].lower()}: {typename},')
code.append(f' pub {r["name"].lower()}: {typename},')
else:
addr = reg['abs']
if addr > ending_addr: