wiz-lang / wiz

A high-level assembly language for writing homebrew software and games on retro console platforms.
http://wiz-lang.org/
Other
409 stars 40 forks source link

Z80: Fix encoding of bitwise instructions with indexing by IX/IY #114

Closed lhsazevedo closed 3 years ago

lhsazevedo commented 3 years ago

Fixes #113

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:

lhsazevedo commented 3 years ago

Alex Kidd eating rice ball