mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
[gamecode] Add tests for the hops instructions
And, of course, fix a bug in the inverted hops (yay for tests).
This commit is contained in:
parent
7ea12b3ff9
commit
d57712975e
3 changed files with 174 additions and 2 deletions
|
@ -39,7 +39,7 @@ def dst_str(type, width, op):
|
|||
return f"OPC({types[type][op]})"
|
||||
|
||||
def hop_str(type, width, op):
|
||||
return f"OP_hop{width+1}"
|
||||
return f"{'~' if op & 4 and op != 7 else ''}OP_hop{width+1}"
|
||||
|
||||
for type in range(2):
|
||||
for width in range(1, 4): # 0 is reserved
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue