Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing DMA boundary detection
Sorry about that. Forgot how masks work
  • Loading branch information
Clownacy committed Jun 4, 2015
1 parent e91a243 commit b8bbcef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic3k.asm
Expand Up @@ -1516,8 +1516,8 @@ Add_To_DMA_Queue:
add.w d3,d3
add.l d3,d4
subq.l #1,d4 ; get address of last byte to be DMAed
andi.l #$F20000,d1
andi.l #$F20000,d4
andi.l #$FE0000,d1
andi.l #$FE0000,d4
cmp.l d1,d4 ; has a $20000-byte (128kb) boundary been crossed?
bne.s Add_To_DMA_Queue2 ; if it has, branch
movem.l (sp)+,d1-d3
Expand Down

0 comments on commit b8bbcef

Please sign in to comment.