[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 65816/GS - move SHGR memory?



On Thu, 8 Nov 2012, gids.rs@sasktel.net wrote:


I mean to load an already existing graphic onto it.


try this move routine
in this example you would load your graphics in bank 0 at $1000

clc
xce
rep #$30
phb
lda #$7fff  ; number of bytes to be moved
ldx #$1000  ; from bank starting address
ldy #$2000  ; to bank starting address
mvn 00e1  ; from bank, to bank
plb
sec
xce
lda #$80
tsb $c029  ; turn on shr
jsr $fd0c
lda #$80
trb $c029
rts



Thanks. I don't speak 65816, and with a "block move" function it'll be easier.

-uso.