[gamecode] Correct types and widths for bitnot

bitnot is the only unary operator in the bitops group and thus needs
special handling.
This commit is contained in:
Bill Currie 2022-01-27 10:21:48 +09:00
parent 169b8cc398
commit e9dff4ff9c

View file

@ -91,8 +91,8 @@ bitops_formats = {
"mnemonic": "{op_bit[oo]}",
"opname": "{op_bit[oo]}",
"format": "{bit_fmt[oo]}",
"widths": "{ss+1}, {ss+1}, {ss+1}",
"types": "{bit_types[t]}, {bit_types[t]}, {bit_types[t]}",
"widths": "{ss+1}, { oo < 3 and ss+1 or 0}, {ss+1}",
"types": "{bit_types[t]}, {oo < 3 and bit_types[t] or 'ev_invalid'}, {bit_types[t]}",
"args": {
"op_bit": ["bitand", "bitor", "bitxor", "bitnot"],
"bit_type": ["I", "L"],