Skip to content

Commit

Permalink
Fix logical error
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored Dec 18, 2023
1 parent 12d5d6c commit 111b623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/vid_mga.c
Original file line number Diff line number Diff line change
Expand Up @@ -2670,7 +2670,7 @@ run_dma(mystique_t *mystique)
words_transferred++;
}

if ((mystique->dma.pri_header & 0xff) != 0x15 || (mystique->dma.primaddress & DMA_ADDR_MASK) < (mystique->dma.primend & DMA_ADDR_MASK)) {
if ((mystique->dma.pri_header & 0xff) != 0x15 && (mystique->dma.primaddress & DMA_ADDR_MASK) < (mystique->dma.primend & DMA_ADDR_MASK)) {
uint32_t val;
uint32_t reg_addr;

Expand Down

0 comments on commit 111b623

Please sign in to comment.