From 88d0d276444ed44b8dbfb29eebf14e87ebf0e403 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 1 Jan 2013 07:06:57 -0800 Subject: Make writes to control and data port block when DMA is in progress --- runtime.S | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime.S') 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) -- cgit v1.2.3