Mercurial > repos > blastem
diff runtime.S @ 149:139e5dcd6aa3
Make writes to control and data port block when DMA is in progress
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 01 Jan 2013 07:06:57 -0800 |
parents | 15b8dce19cf4 |
children | 3e68e517cc01 |
line wrap: on
line diff
--- a/runtime.S Tue Jan 01 07:04:48 2013 -0800 +++ b/runtime.S Tue Jan 01 07:06:57 2013 -0800 @@ -209,6 +209,9 @@ 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)