# HG changeset patch
# User heinrichsweikamp
# Date 1326228913 -3600
# Node ID 0def530863c21c301cf88156d0f7f2bd0f102266
# Parent  ca0e0efb1573b955764ee722f14d3880c2d25ed3
Use faster return from ISR

diff -r ca0e0efb1573 -r 0def530863c2 code_part1/OSTC_code_asm_part1/MAIN.ASM
--- a/code_part1/OSTC_code_asm_part1/MAIN.ASM	Tue Jan 10 00:04:33 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/MAIN.ASM	Tue Jan 10 21:55:13 2012 +0100
@@ -41,11 +41,10 @@
 		bra		HighInt						;High Priority Interrups
 
 HighInt:
-		movff	BSR,0x102					;save BSR register
+;		movff	BSR,0x102					;save BSR register
+;		movff	STATUS,status_temp			;save STATUS register
+;		movff	WREG,wreg_temp				;save working register
 		movlb	b'00000001'					;select Bank1
-		
-		movff	STATUS,status_temp			;save STATUS register
-		movff	WREG,wreg_temp				;save working register
 		movff   PRODL,prod_temp+0
 		movff   PRODH,prod_temp+1
 
@@ -68,10 +67,10 @@
 
 		movff   prod_temp+1,PRODH
 		movff   prod_temp+0,PRODL
-		movff	wreg_temp,WREG				;restore working register
-		movff	status_temp,STATUS			;restore STATUS register
-		movff	0x102,BSR					;restore BSR register
-		retfie
+;		movff	wreg_temp,WREG				;restore working register
+;		movff	status_temp,STATUS			;restore STATUS register
+;		movff	0x102,BSR					;restore BSR register
+		retfie FAST
 
 ;=============================================================================
 #include    multilang_text.asm		; includes textmacros
diff -r ca0e0efb1573 -r 0def530863c2 code_part1/OSTC_code_asm_part1/definitions.asm
--- a/code_part1/OSTC_code_asm_part1/definitions.asm	Tue Jan 10 00:04:33 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/definitions.asm	Tue Jan 10 21:55:13 2012 +0100
@@ -157,9 +157,9 @@
 ;
 bank1 udata 0x100               ;Bank 1
 
-wreg_temp       res 1           ;variables used for context saving during ISR 
-status_temp     res 1
-bsr_temp        res 1
+;wreg_temp       res 1           ;variables used for context saving during ISR 
+;status_temp     res 1
+;bsr_temp        res 1
 prod_temp       res 2           ;Trashed by isr_mult16x16, for sensor compensations
 
 secs            res 1           ;realtime clock