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