diff options
Diffstat (limited to 'software')
-rw-r--r-- | software/idm/idm.asm | 13 |
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 |