summaryrefslogtreecommitdiff
path: root/software/idm/idm.asm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2012-06-07 22:04:08 +0000
committerChristian Pointner <equinox@mur.at>2012-06-07 22:04:08 +0000
commit1d85b2bbb6e8374e8c9bfc9f2dd6a0d6bc3a1f32 (patch)
treeaab23a7306e30986e9626fd57ff1b068ccd92cdf /software/idm/idm.asm
parentsmall performance increase (diff)
INT Pin now follows UNDERRUN
git-svn-id: https://svn.spreadspace.org/mur.sat@518 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/idm/idm.asm')
-rw-r--r--software/idm/idm.asm13
1 files changed, 5 insertions, 8 deletions
diff --git a/software/idm/idm.asm b/software/idm/idm.asm
index 24766d4..6ea532d 100644
--- a/software/idm/idm.asm
+++ b/software/idm/idm.asm
@@ -140,7 +140,6 @@ wbuf_reset
movlw BUF_STARTL
movwf FSRWL
bcf OVERRUN
-
movf BSR,w
clrf BSR
bcf DBG2
@@ -162,9 +161,7 @@ wbuf_next
xorwf FSRWL,w
btfss STATUS,Z
goto wbuf_move_ptr
-
bsf OVERRUN
-
movf BSR,w
clrf BSR
bsf DBG2
@@ -174,9 +171,9 @@ wbuf_next
wbuf_move_ptr
movf BSR,w
clrf BSR
+ bcf INT
bcf DBG1
movwf BSR
-
bcf UNDERRUN
addfsr FSRW,1
@@ -206,12 +203,13 @@ rbuf_reset
movlw BUF_STARTL
movwf FSRRL
bsf UNDERRUN
-
movf BSR,w
clrf BSR
+ bsf INT
bsf DBG1
movwf BSR
-
+ return
+
;; -------------------
rbuf_next
btfsc OVERRUN
@@ -229,9 +227,9 @@ rbuf_next
goto rbuf_move_ptr
bsf UNDERRUN
-
movf BSR,w
clrf BSR
+ bsf INT
bsf DBG1
movwf BSR
return
@@ -241,7 +239,6 @@ rbuf_move_ptr
clrf BSR
bcf DBG2
movwf BSR
-
bcf OVERRUN
addfsr FSRR,1