neobrain / nihstro

3DS shader assembler and disassembler
BSD 3-Clause "New" or "Revised" License
88 stars 35 forks source link

Vector subscript out of range on decompiling shader. #61

Open smb123w64gb opened 6 years ago

smb123w64gb commented 6 years ago

Was trying to decompile sm4sh shader and it hit a "vector subscript out of range" error. Ill include a sample to reproduce the error.

CustumShader.zip

neobrain commented 5 years ago

This is probably due to the issue addressed in https://github.com/citra-emu/citra/pull/1479.

MAD instruction use a slightly different encoding than originally thought. nihstro's disassembler/assembler haven't been adapted to consider this properly, yet.