comment by sp on 25 November 2008
You are right.
.
I would have splitted the table in two. First render the odd scanlines with the loop under, and then use another loop for the even scanlines. The bitplanemask should be 8 colors and placed in the highword of the dataregisters. (For 12 colors you can use 4 adress registers)
If you wan't to scroll modify all copperwaits and one branch pr scanline.2 pixel horisontal/vertical scrolling should be enough.:-D then you need around 2x more memory than the current version.
(This loop is 17 cycles pr. pixel)
move.w 0000(a3),d0 ;8
move.w 0000(a3),d1 ;8
move.w 0000(a3),d2 ;8
move.w 0000(a3),d3 ;8
move.w 0000(a3),d4 ;8
move.w 0000(a3),d5 ;8
move.w 0000(a3),d6 ;8
move.w 0000(a3),d7 ;8
movem.l d0-d7,-(a1) ;72
comment by sp on 25 November 2008
one more thing.
The colormask in the highword of the dataregisters need to be rotated 1 time pr. frame when scrolling on the x-axis.
comment by datsua on 10 January 2009
A really nice OCS demo ala 2008.
comment by Jazzcat on 22 July 2011
One of my favourite OCS demos. Fresh and modern.
Please log in to add a comment!
User Votes: Average: 4 points (13 votes) |
Please log in to vote on this production!
|