??? 09/12/08 17:58 Read: times |
#158230 - Task switching Responding to: ???'s previous message |
(Note: some micro manufacturers call registers "files")
Yes, it has been done before. A month or so ago, I was fooling around with the concept of task switching with an 8052. I used one variable to keep track of which thread I was in, an array of four more bytes to save and restore the stack pointer, and split the RAM into four 15-byte segments. By saving and restoring the stack pointer for each thread, I was able to move from thread to thread. --Rich |
Topic | Author | Date |
16 bit in 2x8 bit? | 01/01/70 00:00 | |
One step at a time | 01/01/70 00:00 | |
You need to know the instruction set | 01/01/70 00:00 | |
Task switching | 01/01/70 00:00 | |
File of registers? | 01/01/70 00:00 | |
We seem to have lost the OP!![]() | 01/01/70 00:00 |