Procedure code within

General discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Tauschi
Posts: 3
Joined: 01 Mar 2010 15:53

Procedure code within

#1 Post by Tauschi » 01 Mar 2010 17:32

Hello,

there is a way to create a procedure in which the registers are not saved, so everything is manually programmed. The backup and restore needs a lot of time at a time critical application.

Code: Select all

[color=#FF0000]
[b]
0x0106	0xF80036  	PUSH	RCOUNT
0x0108	0x781F80  	PUSH	W0
0x010A	0x200020  	MOV	#2, W0
0x010C	0x09000C  	REPEAT	#12
0x010E	0x781FB0  	PUSH	[W0++]
[/b]
[/color];


Scheibenwischer.mpas,7 :: 		begin
;Scheibenwischer.mpas,10 :: 		T1IF_bit := 0;
0x0110	0xA96084  	BCLR	T1IF_bit, #3
;Scheibenwischer.mpas,11 :: 		end;
L_end_Timer1Int:


[color=#FF0000]
[b]
0x0112	0x2001A0  	MOV	#26, W0
0x0114	0x09000C  	REPEAT	#12
0x0116	0x78104F  	POP	[W0--]
0x0118	0x78004F  	POP	W0
0x011A	0xF90036  	POP	RCOUNT
[/b]
[/color]
0x011C	0x064000  	RETFIE

Tauschi
Posts: 3
Joined: 01 Mar 2010 15:53

Re: Procedure code within

#2 Post by Tauschi » 01 Mar 2010 19:12

Hello,

I found it myself

Built-in Routines: DisableContexSaving

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 General”