After some work on the code I have finally managed to make it work as expected!
The last bug to fall was the color of the bar right after the resolution pattern. It was a register that should be updated but I was out of spare cycles.
Then I have abandoned the use of a table and a pointer to pick up the color of the current stripe; instead I have used a macro with a parameter which happens to be the color and repeated such macro 31 times along the line.
Then, at the lines which contain the resolution pattern it gets easy to replace some stripes for the pattern simply by commenting the macro. As long as the cycle count matches the multiples of the width of a stripe everything gets fine!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.