|

楼主 |
发表于 2006-11-10 22:03:31
|
显示全部楼层
请仁兄看看测试结果:
【this is the start of the while(1) loop: loop xxxx】表示while(1)的第几个循环
没有 this is the end of the while(1) ,因为它搜索不到输入就重新再循环
以下两句是放在中断处理的头一句和尾一句
【this is the start of the interrupt-handler loop: loop xxxx】
【this is the end of the interrupt-handler loop: loop xxxx】
input = -1
this is the start of the while(1) loop: loop 12517
input = -1
this is the start of the while(1) loop: loop 12518
input = -1
this is the start of the while(1) loop: loop 12519
input = -1
this is the start of the while(1) loop: loop 12520
input = -1
this is the start of the while(1) loop: loop 12521
input = -1
this is the start of the while(1) loop: loop 12522
input = -1
this is the start of the while(1) loop: loop 12523
input = -1
this is the start of the while(1) loop: loop 12524
input = -1
this is the start of the while(1) loop: loop ttiittittittittittittitiitiitiiti1this is the start of the while(1) loop: loop 12803
input = -1
this is the start of the while(1) loop: loop 12804
input = -1
this is the start of the while(1) loop: loop 12805
input = -1
this is the start of the while(1) loop: loop 12806
input = -1
this is the start of the while(1) loop: loop 12807
input = -1
this is the start of the while(1) loop: loop 12808
input = -1
this is the start of the while(1) loop: loop 12809
input = -1
this is the start of the while(1) loop: loop 12810
input = -1
this is the start of the while(1) loop: loop 12811
input = -1
this is the start of the while(1) loop: loop 12812
input = -1
this is the start of the while(1) loop: loop 12813
input = -1
this is the start of the while(1) loop: loop 12814
input = -1
this is the start of the while(1) loop: loopttiittittittiittittittitiitiitiiti2this is the start of the while(1) loop: loop 13180
input = -1
this is the start of the while(1) loop: loop 13181
input = -1
this is the start of the while(1) loop: loop 13182
input = -1
this is the start of the while(1) loop: loop 13183
input = -1
this is the start of the while(1) loop: loop 13184
input = -1
this is the start of the while(1) loop: loop 13185
input = -1
this is the start of the while(1) loop: loop 13186
input = -1
this is the start of the while(1) loop: loop 13187
input = -1
this is the start of the while(1) loop: loop 13188
input = -1
this is the start of the while(1) loop: loop 13189
input = -1
this is the start of the while(1) loop: loop 13190
input = -1
this is the start of the while(1) loop: loop 13191
input = -1
this is the start of the while(1) loop: looptttittittittittiitiittittittittitt3this is the start of the while(1) loop: loop 13558
input = -1
this is the start of the while(1) loop: loop 13559
input = -1
this is the start of the while(1) loop: loop 13560
input = -1
this is the start of the while(1) loop: loop 13561
input = -1
this is the start of the while(1) loop: loop 13562
input = -1
this is the start of the while(1) loop: loop 13563
input = -1
this is the start of the while(1) loop: loop 13564
input = -1
this is the start of the while(1) loop: loop 13565
input = -1
this is the start of the while(1) loop: loop 13566
input = -1
this is the start of the while(1) loop: loop 13567
input = -1
this is the start of the while(1) loop: loop 13568
input = -1
this is the start of the while(1) loop: loop 13569
input = -1
this is the start of the while(1) loop: loopiittiitiitiittittitiittittittittit4this is the start of the interrupt_handler: loop 35
this is the end of the interrupt_handler: loop 35
this is the start of the interrupt_handler: loop 36
this is the end of the interrupt_handler: loop 36
this is the start of the interrupt_handler: loop 37
this is the end of the interrupt_handler: loop 37
this is the start of the interrupt_handler: loop 38
this is the end of the interrupt_handler: loop 38
this is the start of the interrupt_handler: loop 39
this is the end of the interrupt_handler: loop 39
this is the start of the interrupt_handler: loop 40
this is the end of the interrupt_handler: loop 40
this is the start of the interrupt_handler: loop 41
this is the end of the interrupt_handler: loop 41
this is the start of the interrupt_handler: loop 42
this is the end of the interrupt_handler: loop 42
this is the start of the interrupt_handler: loop 43
this is the end of the interrupt_handler: loop 43
this is the start of the interrupt_handler: loop 44 |
|