Author Topic: sd2snes msu seek bug  (Read 494 times)

0 Members and 1 Guest are viewing this topic.

Offline gizaha

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
sd2snes msu seek bug
« on: May 30, 2020, 08:21 PM »
I'm trying to make killer instinct msu to work at sd2snes.
I there is bug when dma from msu, around sd cache/buffer (msu1.c at void prepare_data)

Dma orchid's stage fmv frame:
Each frame, i set 2000-2003 and then dma. After a while, it reads from wrong address. Of course i wait $2000 for data busy. Nothing else is been reading from msu file. Even pcm music is stopped.

Dma a single image:
I have image data at msu file $34d3. I set read address and dma to vram. Dma stops when it reach address $4000. If i move this data from $34d3 to $4000, dma uploads the full data ok.

I wrote a test program. The bug is when you set 2000-2003 and it's within buffer.
Etc set msu_address=0000 and then dma data. Later you set msu_address=3400 (3400 is within buffer 0-4000). If you dma, you will get only data from 3400 to 4000.
I have source codes to provide if needed.

Please don't make me solder pins at uart port, debug it using existing printf commands and recompile the firmware.

Offline Relikk

  • Sr. Member
  • ****
  • Posts: 345
  • Karma: +32/-8
    • View Profile
Re: sd2snes msu seek bug
« Reply #1 on: May 31, 2020, 12:23 AM »
He might see this, but you'd have a better chance of catching ikari in the SD2SNES channel on the Classic Gaming Discord. He was active today.

Offline gizaha

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: sd2snes msu seek bug
« Reply #2 on: June 01, 2020, 12:27 AM »
I have no idea how discord works. It reminds me mIRC.
I have to keep it open in browser all day and wait for him?