summaryrefslogtreecommitdiff
path: root/software
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2012-06-07 21:53:53 +0000
committerChristian Pointner <equinox@mur.at>2012-06-07 21:53:53 +0000
commit06f06b8ca92d3625a036d2b89f7922be3b47cec5 (patch)
tree2810f3cc11856eb5bab064469ff3dec73fb9c11e /software
parentringbuffer test seems to be working now (diff)
small performance increase
git-svn-id: https://svn.spreadspace.org/mur.sat@517 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software')
-rw-r--r--software/idm/idm.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/software/idm/idm.asm b/software/idm/idm.asm
index f6b2320..24766d4 100644
--- a/software/idm/idm.asm
+++ b/software/idm/idm.asm
@@ -151,7 +151,9 @@ wbuf_reset
wbuf_next
btfsc UNDERRUN
goto wbuf_move_ptr
-
+ btfsc OVERRUN
+ return
+
movf FSRRH,w
xorwf FSRWH,w
btfss STATUS,Z
@@ -214,6 +216,8 @@ rbuf_reset
rbuf_next
btfsc OVERRUN
goto rbuf_move_ptr
+ btfsc UNDERRUN
+ return
movf FSRWH,w
xorwf FSRRH,w