X16Community / vera-module

Versatile Embedded Retro Adapter
MIT License
13 stars 5 forks source link

Line draw mode (8bpp) #10

Closed visual-trials closed 1 year ago

visual-trials commented 1 year ago

In this PR the line draw mode is added to the fx branch.

It does the following things:

Note that to lessen the timing pressure first the x/y positions are incremented and one clock the logic to determine whether/how ADDR1 should be incremented is done. This is arranged using the fx_increment_addr1_depending_on_overflow_next/_r register.

Also note that this PR only contains the 8bpp version of the line draw mode. The 4-bit version will follow later on. This is to keep the PRs as small as possible.

This version was run on real HW and can draw lines using the line draw helper.

-- Sidenote: due to the need for merging back and forth between forks, commits of earlier PRs are in this PR. It is there best to concentrate on the actual file differences.