Skip to content

Commit

Permalink
enhancement: Emulated Paula disk read DMA bug
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Nov 20, 2023
1 parent 7b2b14e commit bcb1b37
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 79 deletions.
3 changes: 2 additions & 1 deletion src/custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12683,6 +12683,7 @@ static void dmal_emu(uae_u32 val)
AUDxDAT(nr, dat, pt);
} else if (dmalpos >= 0 && dmalpos < 6) {
uae_u16 dat = 0;
int s = (dmalpos / 2);
int w = (dmalbits & 3) == 3;
// disk_fifostatus() needed in >100% disk speed modes
if (w) {
Expand Down Expand Up @@ -12717,7 +12718,7 @@ static void dmal_emu(uae_u32 val)
// read from disk
if (disk_fifostatus() >= 0) {
uaecptr pt = disk_getpt();
dat = DSKDATR();
dat = DSKDATR(s);
if (dmal_ce) {
#ifdef DEBUGGER
if (debug_dma) {
Expand Down

0 comments on commit bcb1b37

Please sign in to comment.