Closed ISSOtm closed 5 years ago
This solution doesn't work out of the box, and doesn't quite line up with my interface principles, but don't disagree that the current implementation of mult is pretty shit.
I'll close the pull requests, but open a new issue in its stead.
This solution doesn't work out of the box
How so? The macro works fine, compiles to working code... Where's the problem?
and doesn't quite line up with my interface principles
You don't state them, so I can't try to improve them.
Also, closing the issues without giving a chance to improve is pretty bad if you ask me.
As I said, I opened an issue to improve the macro. It's right here and includes the code you wrote. https://github.com/joeldipops/gbz80-pseudoOps/issues/11.
The code changed substantially since the request was opened and I'm not knowledgeable enough about git and github to simply merge the code straight from the PR.
I had another look at the macro, and as I thought at the time, it neither compiles nor works. Some issues
With those fixes it does look like it's working now, but didn't out of the box. I want to take the time make sure I know how this works and fiddle with the interface if I can.
Adapted from http://wikiti.brandonw.net/index.php?title=Z80_Routines:Math:Multiplication Now constant time, and uses less regs