double eek, dma length is in bytes, immediate store/load are in words. fixes coef dumping

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3840 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-07-18 22:56:36 +00:00
parent 9dbfb38e4e
commit 6b711a55cf
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ CR_DRAM: equ 0
IROM_BASE: equ 0x8000
COEF_BASE: equ 0x1000
DUMP_SIZE: equ 0x1000 ; in words!
DUMP_SIZE: equ 0x2000 ; in bytes!
/**************************************************************/
@ -100,7 +100,7 @@ do_halt:
copy_irom_to_dram:
lri $ar0, #IROM_BASE
lri $ar1, #DRAM_BASE
lri $ar2, #DUMP_SIZE
lri $ar2, #DUMP_SIZE/2 ; each iteration copies a word
bloop $ar2, copy_irom_to_dram_end
ilrri $ac0.m, @$ar0
; Now ac0.m is 16bits of irom!
@ -113,7 +113,7 @@ copy_irom_to_dram_end:
copy_coef_to_dram:
lri $ar0, #COEF_BASE
lri $ar1, #DRAM_BASE
lri $ar2, #DUMP_SIZE
lri $ar2, #DUMP_SIZE/2 ; each iteration copies a word
bloop $ar2, copy_coef_to_dram_end
lrri $ac0.m, @$ar0
; Now ac0.m is 16bits of coef!