piclist 1997\07\18\092511a >
Thread: Re: Multitasking]
piclist.com/techref/microchip/ints.htm?key=multitasking
flavicon
face BY : Dmitry Kiryashov email (remove spam text)



Few addition. I think not need to pre-initialize STACK[]
with Proc_1 , Proc_2 ... address values . Let it's values
contain some pre-compiled table's array .

Intro_points:
       ADDWF PCL,F
       DT    HIGH(Proc_1), LOW(Proc_1), HIGH(Proc_2), LOW(Proc_2),...

And SEMAPHORE should rewrite as:

SEMAPHORE:
       MOVWF POINTER
       MOVLW HIGH (Intro_points)
       MOVWF PCLATH

       INCF  POINTER,W
       CALL  Intro_points
       MOVWF SOME_TEMP_VAR

       MOVFW POINTER
       CALL  Intro_points
       MOVWF PCLATH
       MOVFW SOME_TEMP_VAR
       MOVWF PCL      ; It's hidden GOTO ;)


It's just idea that I was thinking some times ago .
But it still not true multitasking because there are no
ability to stop any procedure at any time and execute
any another .

{Quote hidden}


seeking: microchip ints multitasking
<33CF6F0C.39DB@aha.ru> 7bit

See also: piclist.com/techref/microchip/ints.htm?key=multitasking
Reply You must be a member of the piclist mailing list (not only a piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Re: Multitasking]

month overview.

new search...