changeset 543:0def530863c2

Use faster return from ISR
author heinrichsweikamp
date Tue, 10 Jan 2012 21:55:13 +0100
parents ca0e0efb1573
children 56da3e962e98
files code_part1/OSTC_code_asm_part1/MAIN.ASM code_part1/OSTC_code_asm_part1/definitions.asm
diffstat 2 files changed, 10 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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