I tried to read / write data using DMA transfer. This works for Yabause, but not for SSF and Mednafen. Probably some other conditions are needed. Here is the code: Code: | | | MOV #0x00, R0 MOV #0x80, R5 MOV.L R0, @(0x00C, R5) MOV #0x9C, R5 SHLL2 R5 MOV.B R0, @(0x001, R5) MOV #0x80, R0 MOV.L R1, @(0x000, R0) [Source address] MOV.L R3, @(0x004, R0) [Destination address] MOV.L R4, @(0x008, R0) [DMA transfer count register] MOV #0x5A, R5 [DMA Channel SHLL8 R5 Control Registers ADD #0x01, R5 value] MOV.L R5, @(0x00C, R0) MOV #0x09, R5 MOV.L R5, @(0x030, R0) RTS NOP |
|