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

Line Blitter and DMACON::BZERO flag #205

Closed
dirkwhoffmann opened this issue Nov 1, 2021 · 1 comment
Closed

Line Blitter and DMACON::BZERO flag #205

dirkwhoffmann opened this issue Nov 1, 2021 · 1 comment

Comments

@dirkwhoffmann
Copy link

Test case:
https://github.com/dirkwhoffmann/vAmigaTS/tree/master/Blitter/line/zero1

From the README:

This test runs 12 line blits. Each blit draws a horizontal line with varying line patterns and 
multiple combinations of the SING and USEC bit. After each blit, the value of the Blitter zero 
bit is read and visualized in form of a blue or yellow line.

Amiga 500 8A:

138749113-6565ac22-1a3f-40cb-9f5f-c999b933fb61

UAE (cycle exact mode):

138751481-847596e4-e8d0-4f63-8a3a-cfe2ed5c47c4

UAE (immediate blits):

138751564-92b2a549-9c4c-4347-93cc-43ff382f551d

The test fails in UAE because the zero bit is written inside function blitter_line_write() and not outside:

blt_info.blitzero = 0;

On the real machine, the bit gets cleared even if nothing is written into memory.

@tonioni
Copy link
Owner

tonioni commented Nov 4, 2021

Thanks, fixed. Unfortunately no one have done weird things with line mode or I would have noticed these kinds of bugs long time ago. Non-line mode on the other hand..

@tonioni tonioni closed this as completed Nov 4, 2021
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

2 participants