This is a oneliner fix. As instructed by @Bananattack, changing buffer.push_back to buffer.insert(buffer.end() - 1, ... was enough. Additionally, block tests were added for double prefixed bit, res and set instructions of both IX and IY registers.
Let me know if the fix can be improved even further. And thank you for guiding me on Discord :pray:
Fixes #113
This is a oneliner fix. As instructed by @Bananattack, changing
buffer.push_back
tobuffer.insert(buffer.end() - 1, ...
was enough. Additionally, block tests were added for double prefixed bit, res and set instructions of both IX and IY registers.Let me know if the fix can be improved even further. And thank you for guiding me on Discord :pray: