Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Scc #45

Closed
marhel opened this issue Feb 2, 2016 · 9 comments
Closed

Implement Scc #45

marhel opened this issue Feb 2, 2016 · 9 comments

Comments

@marhel
Copy link
Owner

marhel commented Feb 2, 2016

Please implement the instruction for Set Conditionally. See implementation of Bcc. For more information, please read the instruction contribution guidelines

@emoon
Copy link
Contributor

emoon commented Feb 5, 2016

I can take this

@emoon
Copy link
Contributor

emoon commented Feb 16, 2016

I have started to work on this but I have a strange issue

emoon@810ec28

I have started with implementing shi (dn) but when I try to run the qc test for this the instruction never gets called. I'm sure I have missed something stupid but not sure what it is.

@marhel
Copy link
Owner Author

marhel commented Feb 16, 2016

I made the mistake of swapping (or, not swapping, rather) the arguments to the qc-macro a few times. It's easily done, and with the mask and the match reversed, it won't call the intended instruction. We should probably made the qc and op_handler macros have their arguments in the same order, or find a way to make this mistake not typecheck.

@emoon
Copy link
Contributor

emoon commented Feb 16, 2016

Seems I forgot the MASK_OUT_Y here (doh!)

@marhel
Copy link
Owner Author

marhel commented Feb 16, 2016

Also, please do a test for implementing the correct op-constant, like at the bottom of handlers.rs, to see if you messed that up... And I think the default mask-argument to the qc-macro is MASK_OUT_X_Y, which is not the mask your op used. (Oh, noticed just now you found it! 🍰 )

@emoon
Copy link
Contributor

emoon commented Feb 16, 2016

:)

@marhel
Copy link
Owner Author

marhel commented Feb 16, 2016

We Should probably remove the default mask-argument to qc all together, I've actually stopped using that. Now I just copy the op_handler, and transpose the first and second arguments which is a quick and easy move in sublime text. but if course it would be easier not to have to do that swap at all.

@emoon
Copy link
Contributor

emoon commented Feb 16, 2016

Yeah I think that is a good idea.

This was referenced Feb 16, 2016
@marhel marhel closed this as completed in 81dbc63 Feb 18, 2016
@marhel
Copy link
Owner Author

marhel commented Feb 19, 2016

It seems that the Scc register cycle issue is fixed in Mame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants