clear_nop.vs.asm: correct number of VE_ADD arguments

This is now being checked.
This commit is contained in:
Zack Buhman 2025-10-23 19:57:39 -05:00
parent 8c95d09658
commit d08f99d36b
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
out[0].xyzw = VE_ADD input[0].xyzw input[0].0000 input[0].0000 ;
out[0].xyzw = VE_ADD input[0].xyzw input[0].0000 ;

View File

@ -1 +1 @@
0x00f00203, 0x00d10001, 0x01248001, 0x01248001,
0x00f00203, 0x00d10001, 0x01248001, 0x01ffe001,

View File

@ -72,7 +72,7 @@ def prev_source(ins, ix):
elif ix == 1:
return ins.sources[0]
elif ix == 2:
if ins.sources[1] is not None:
if len(ins.sources) >= 2 and ins.sources[1] is not None:
return ins.sources[1]
else:
return ins.sources[0]