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

Mask & Source channels are backwards in the template project when blitting the bob #89

Open
davepoo opened this issue Dec 21, 2021 · 0 comments

Comments

@davepoo
Copy link

davepoo commented Dec 21, 2021

The mask should be channel A and the source channel B for the blit of the bob, the template is doing the reverse.
This doesn't cause any noticeable effect onscreen in the demo because the bob is being drawn over a cleared background, but this is confusing for anyone looking at the code.
I've corrected the lines below in main.c, You can verify this is correct by looking at 6.4 in the Amiga Hardware Reference Manual.

custom->bltcon0 = 0xca | SRCA | SRCB | SRCC | DEST | ((x & 15) << ASHIFTSHIFT); // A = mask, B = source, C = background, D = destination
...
custom->bltapt = src + 32 / 8 * 1;
...
custom->bltbpt = src;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant