rv2fox: If using the zero
register, use immediate 0 instead
This commit is contained in:
parent
251ae31537
commit
73651a0a1b
|
@ -208,6 +208,8 @@ class Converter:
|
||||||
"""
|
"""
|
||||||
if reg == 'sp':
|
if reg == 'sp':
|
||||||
return 'rsp'
|
return 'rsp'
|
||||||
|
elif reg == 'zero':
|
||||||
|
return f'0';
|
||||||
elif reg in self.regidx:
|
elif reg in self.regidx:
|
||||||
return f'r{self.regidx[reg]}'
|
return f'r{self.regidx[reg]}'
|
||||||
elif reg in self.xregidx:
|
elif reg in self.xregidx:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user