comparison src/isr.inc @ 623:c40025d8e750

3.03 beta released
author heinrichsweikamp
date Mon, 03 Jun 2019 14:01:48 +0200
parents ca4556fb60b9
children 75e90cd0c2c3
comparison
equal deleted inserted replaced
622:02d1386429a6 623:c40025d8e750
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File isr.inc 3 ; File isr.inc combined next generation V3.0.1
4 ; 4 ;
5 ; 5 ;
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
7 ;============================================================================= 7 ;=============================================================================
8 ; HISTORY 8 ; HISTORY
9 ; 2011-08-06 : [mH] moving from OSTC code 9 ; 2011-08-06 : [mH] moving from OSTC code
10 10
11 SAFE_2BYTE_COPY MACRO from,to 11
12 local retry 12 ; the macro for safe copying of ISR-modified data has moved
13 retry: 13 ; to hwos.inc and now works in some different way.
14 movff from+1,WREG ; high byte in WREG, ...
15 movff WREG,to+1 ; ... and destination
16 movff from+0,to+0 ; copy low byte
17 movff from+1,TABLAT ; another bank-safe read
18 xorwf TABLAT,W ; did the high byte changed?
19 bnz retry ; YES - retry
20 ENDM