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