X16Community / x16-rom

Other
45 stars 27 forks source link

[GRAPH] make GRAPH_put_image capable of bank wrapping #277

Closed mooinglemur closed 8 months ago

stefan-b-jakobsson commented 8 months ago

I have a really hard time following the execution of this code just by reading it.

Running the TEST command works.

mooinglemur commented 8 months ago

I have a really hard time following the execution of this code just by reading it.

Understood :) Basically my changes are meant to keep the interface between the subroutines the same as they were. The set_pixels routine was changed to increment the ram_bank temporarily if it crosses over into the next bank. draw_image does the same thing and then restores it to the original value before returning. It could be further optimized, but it's functional.