summaryrefslogtreecommitdiff
path: root/runtime.S
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-01-01 07:06:57 -0800
committerMike Pavone <pavone@retrodev.com>2013-01-01 07:06:57 -0800
commit88d0d276444ed44b8dbfb29eebf14e87ebf0e403 (patch)
treef48c3962cd762f780c218224e7fd441d1687571b /runtime.S
parent4bf659a1272fdf8d1e4d8213aa584adf591dad76 (diff)
Make writes to control and data port block when DMA is in progress
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)