rv2fox: If using the zero register, use immediate 0 instead

This commit is contained in:
Ry 2023-02-07 18:13:01 -08:00
parent 251ae31537
commit 73651a0a1b

View File

@ -208,6 +208,8 @@ class Converter:
"""
if reg == 'sp':
return 'rsp'
elif reg == 'zero':
return f'0';
elif reg in self.regidx:
return f'r{self.regidx[reg]}'
elif reg in self.xregidx: