| ??? 09/10/02 17:31 Read: times |
#28961 - RE: Making Global variables interrupt #2 |
An often overlooked issue is a pointer in assembly incremented in the interrupt and decremented in the main or vice versa (I have found it many times).
If the interrupt happens between the main reading the two halves of the pointer value the following can happen Pointer 1ffh main read high 1 interrupt increment pointer to 200 main read low 0 The same will probably happen in C Erik |
| Topic | Author | Date |
| Making Global variables interrupt safe? | 01/01/70 00:00 | |
| RE: Making Global variables interrupt safe? | 01/01/70 00:00 | |
| RE: Making Global variables interrupt safe? | 01/01/70 00:00 | |
| RE: Making Global variables interrupt safe? | 01/01/70 00:00 | |
| RE: Making Global variables interrupt sa | 01/01/70 00:00 | |
| RE: Using/Avoiding Global variables | 01/01/70 00:00 | |
| RE: Making Global variables interrupt safe? | 01/01/70 00:00 | |
| RE: Making Global variables interrupt sa | 01/01/70 00:00 | |
| RE: Making Global variables interrupt sa | 01/01/70 00:00 | |
| RE: Making Global variables interrupt sa | 01/01/70 00:00 | |
| RE: Making Global variables interrupt safe? | 01/01/70 00:00 | |
| RE: Making Global variables interrupt safe? | 01/01/70 00:00 | |
| RE: Making Global variables interrupt #2 | 01/01/70 00:00 | |
| RE: Making Global variables interrupt #2 | 01/01/70 00:00 | |
RE: Franc | 01/01/70 00:00 |



