devmiyax / yabause

Yabause is a Sega Saturn emulator and took over as Yaba Sanshiro
http://www.uoyabause.org
GNU General Public License v2.0
212 stars 37 forks source link

SAKURA TAISEN #718

Closed devmiyax closed 4 years ago

devmiyax commented 4 years ago

version:3.0.0-PRO device:SKW-H0 cpu_type:3 video_type:1 comment:bad screen state file screenshot

devmiyax commented 4 years ago

image

devmiyax commented 4 years ago

image

devmiyax commented 4 years ago

Unhandled byte read 0A0B0C10

Freezes with debug message

Unhandled byte read 0A0B0C10 Unhandled byte read 0A0B0C13 Unhandled byte read 0A0B0C12 Unhandled byte read 0A0B0C12

devmiyax commented 4 years ago
0x00219B6E: mov.b @r2, r0
0x00219B6C: add #0x03, r2
0x00219B6A: mov r8, r2
0x00219B68: mov.l @(0x018, r4), r8
0x00219B66: bt/s 0x00219C24
0x00219B64: cmp/eq #0x01, r0
0x00219B62: mov r15, r14
0x00219B60: mov.b @r1, r0
0x00219B5E: mov.l @(0x0D8, pc), r1 ; 0x00219C34
0x00219B5C: sts.l pr, @-r15
0x00219B5A: mov.l r14, @-r15
0x00219B58: mov.l r8, @-r15
sh->regs.PC 0x00219b6e  unsigned int
sh->regs.R[2]   0x0a0b0c10  unsigned int
sh->regs.R[4]   0x002b8a64  unsigned int

0x002b8a64 + 0x18 = 0x2B8A7C

devmiyax commented 4 years ago

Write.B @ 0x2B8A7C val=0000000A pc=0021A278

devmiyax commented 4 years ago
0x0021A278: mov.b r3, @r1
0x0021A276: add #0x14, r1
0x0021A274: add r6, r1
0x0021A272: mov r4, r1
0x0021A270: bf/s 0x0021A27C
0x0021A26E: tst r0, r0
0x0021A26C: and #0x04, r0
0x0021A26A: mov.b @r1, r0
0x0021A268: add #0x03, r1
0x0021A266: mov r7, r1
0x0021A264: add #0x04, r8
0x0021A262: bf/s 0x0021A27C
0x0021A260: cmp/eq r1, r2
0x0021A25E: shlr2 r1
0x0021A25C: extu.b r1, r1
0x0021A25A: shlr2 r2
0x0021A258: mov.b @r1, r1
0x0021A256: add #0x01, r1
0x0021A254: mov r11, r1
0x0021A252: extu.b r2, r2
0x0021A250: mov.b @r1, r2
0x0021A24E: add #0x01, r1
0x0021A24C: mov r7, r1
0x0021A24A: mov.l @(0x018, r1), r7
0x0021A248: mov.l @r8, r1
devmiyax commented 4 years ago
Write.B addr=002B8A78 val=00000001 pc=0021A278
Write.B addr=002B8A79 val=00000003 pc=0021A278
Write.B addr=002B8A7A val=00000006 pc=0021A278
Write.B addr=002B8A7B val=00000007 pc=0021A278
Write.B addr=002B8A7C val=00000008 pc=0021A278
Write.B addr=002B8A7D val=00000009 pc=0021A278
Write.B addr=002B8A7E val=0000000A pc=0021A278
Write.B addr=002B8A7F val=0000000B pc=0021A278
Write.B addr=002B8A80 val=0000000C pc=0021A278
Write.B addr=002B8A81 val=0000000D pc=0021A278
Write.B addr=002B8A82 val=0000000E pc=0021A278
Write.B addr=002B8A83 val=0000000F pc=0021A278

Unhandled byte read 08090A0E

devmiyax commented 4 years ago

Safe

Write.B addr=002B9788 val=00000007 pc=0021A278
devmiyax commented 4 years ago
0x0021A24A: mov.l @(0x018, r1), r7
0x0021A248: mov.l @r8, r1
0x0021A246: mov.l @(0x264, pc), r8 ; 0x0021A4A8

@002B3FD0 is zero "0x0021A24A: mov.l @(0x018, r1), r7 " refrence @0x000018