summaryrefslogtreecommitdiff
path: root/runtime.S
diff options
context:
space:
mode:
Diffstat (limited to 'runtime.S')
-rw-r--r--runtime.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime.S b/runtime.S
index ae78bd7..43295d2 100644
--- a/runtime.S
+++ b/runtime.S
@@ -209,6 +209,9 @@ try_fifo_write:
push %rbx
/* fetch VDP context pointer from 68K context */
mov 128(%rsi), %rdx
+ /* check DMA flag */
+ bt $6, 19(%rdx)
+ jc fifo_fallback
/* get fifo_cur and compare it to fifo_end */
mov (%rdx), %rbx
cmp %rbx, 8(%rdx)