I'm trying to move a block of bytes from rom to ram using the MVP instruction and I'm having trouble getting it to work. I'm trying to move 0x30 bytes from 'table' to $7FB000 and this is what I currently have:
The problem I'm having is how can I get the table's bank where <???> is. I tried:
which just gives an error when assembling.
I suppose I could just use a loop and LDA/STA, but I figured this might save some cycles (correct me if I'm wrong). I also tried using DMA to do this, but I ran into an issue with timing + I kinda want to know how to use MVP.
Any help is appreciated.
Code
PHB REP #$30 LDA #$2F LDX.w #table LDY #$B000 MVP $7F,<???> SEP #$30 PLB RTS table: db $FC,$38,$FC,$38,$FC,$38,$FC,$38...
The problem I'm having is how can I get the table's bank where <???> is. I tried:
Code
MVP $7F,#table>>16
which just gives an error when assembling.
I suppose I could just use a loop and LDA/STA, but I figured this might save some cycles (correct me if I'm wrong). I also tried using DMA to do this, but I ran into an issue with timing + I kinda want to know how to use MVP.
Any help is appreciated.