mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 20:10:44 +00:00
xenora shaders inspect passed each identified instruction to decode() on its own. decode() checks that every branch target lands on an instruction in the stream it was given, and a lone branch has no other instruction to land on, so every supported s_branch and s_cbranch_* was reported as "unsupported operands" (3 of 15 rows in bitwise-branch.bin). Add decode_at(), which decodes one instruction at its real stream offset without the stream-wide target check, and DecodedInstruction::branch_target(). inspect now identifies the whole stream first and checks each branch target against those boundaries, reporting a bad target separately. decode() is rebuilt on decode_at() with unchanged behaviour. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>