Monday, June 29, 2015

Some Sprite Bug Fixes

Deft from MEGA did some testing on the MEGA65 recently and pinned down a pesky sprite colour bug that had been causing problems. Basically some sprites were appearing in a single solid colour that was not the right colour.  He worked out that all high-resolution, i.e., non-multi-colour, sprites were appearing in the sprite multi-colour colour 1, instead of the right colour.  You can see what goes wrong here:


With this very precise information I was able to make a quick patch to the VHDL code to fix the bug, resynthesise it, and send Deft the bitstream, which he confirmed on his board fixes the problem. So now it looks like:


At the same time I also made $D055 select whether to make sprites the normal 21 pixels high, or allow them to be a variable height (set via $D056), but this hasn't been tested yet.

1 comment:

  1. AH! I want it! I LOVE THE 8 BIT PRIMITIVE GRAPHICS!! SO RELAXING! SOOOOOOOOOOOOOOOOOOOOOOOO RELAXING! SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO REEEEEEEEEELLLLLLLLLLAAAAAAAAAXXXXXXXXXXXXXIIIIIIIIIIIIIINNNNNNNNNNNNNNNGGGGGGGGG!!!!!!!!!!!!!!

    I promise to myself that ones I get another job the 1st cheque that comes my way I will buy the board immediately and have it installed in a Commodore 64 case.

    ReplyDelete