Mail Archives: djgpp/1997/08/29/11:11:13
Ying Qin (yqin AT ece DOT uci DOT edu) writes:
> /* called by the packet driver if a packet was received */
> void PacketReceive()
> {
> if (call_back_reg.x.ax == 1)
> { /* Seconde Call */
> total++;
> printf("Total: %d\n", total);
> }
> ...
You aren't calling this printf in a function called in an interrupt
handler by any chance? Calling libc functions with side effects in an
interrupt is a big no-no as I recall. Trash memory, crash your program, etc.
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -