I'm running into a problem with my hdma gradient when vwf_dialogues does dma to backup my layer 3 image.
For 1 frame after my layer 3 disappears my hdma gradient is a mess of colors like in the image below
This doesn't happen every time which makes it quite difficult to pin down the problem.
This is the dma code i from vwf (with the call that causes the problem):
;%dmatransfer(#$01,#$81,#$39,".b #!backupram>>16",".b $01",".b $00",#$0800)
macro dmatransfer(channel, dmasettings, destination, sourcebank, sourcehigh, sourcelow, bytes)
lda<sourcelow> ; I put the label close to the opcode
sta $4302 ; to allow length definitions
and this is my hdma creation code (only runs during init):
The project uses the sa-1 chip.
I tried looking into dma transfer stuff and hdma using regs.txt but wasn't able to find something obviously wrong with the code.
But someone will probably prove me wrong
As far as I know there are no other dma calls there.
Does anybody have a clue what's wrong or where I can examine further?
--------------------My Youtube channel
Currently working on: