nihstro icon indicating copy to clipboard operation
nihstro copied to clipboard

`CompileToRawBinary` does not handle `OpCode::Type::MultiplyAdd`

Open Wunkolo opened this issue 2 years ago • 0 comments

Calling nihstro::InlineAsm::CompileToRawBinary with an OpCode::Id::MAD instruction causes an Unknown instruction exception to throw.

https://github.com/neobrain/nihstro/blob/e924e21b1da60170f0f0a4e5a073cb7d579969c0/include/nihstro/inline_assembly.h#L400-L402

OpCode::Id::MAD is a OpCode::Type::MultiplyAdd which is unhandled by the switch-case and uses the exception-throwing default:-case.

Wunkolo avatar Jun 28 '23 04:06 Wunkolo