Mercurial > public > hwos_code
diff src/isr.inc @ 604:ca4556fb60b9
bump to 2.99beta, work on 3.00 stable
author | heinrichsweikamp |
---|---|
date | Thu, 22 Nov 2018 19:47:26 +0100 |
parents | 11d4fc797f74 |
children | c40025d8e750 |
line wrap: on
line diff
--- a/src/isr.inc Thu Oct 11 21:06:29 2018 +0200 +++ b/src/isr.inc Thu Nov 22 19:47:26 2018 +0100 @@ -8,13 +8,13 @@ ; HISTORY ; 2011-08-06 : [mH] moving from OSTC code -SAFE_2BYTE_COPY MACRO from, to - local retry +SAFE_2BYTE_COPY MACRO from,to + local retry retry: - movff from+1,WREG ; High byte in W. - movff WREG,to+1 ; and destination. - movff from+0,to+0 ; Copy low byte. - movff from+1,TABLAT ; another bank-safe read. - xorwf TABLAT,W ; High byte changed ? - bnz retry - ENDM + movff from+1,WREG ; high byte in WREG, ... + movff WREG,to+1 ; ... and destination + movff from+0,to+0 ; copy low byte + movff from+1,TABLAT ; another bank-safe read + xorwf TABLAT,W ; did the high byte changed? + bnz retry ; YES - retry + ENDM