各位大哥,以下程序是一段100进制的程序,可我在用KEIL51单步仿真时,程序到LOOP:MOV 30H,#0时就停止了,但数码管亮了;稍等一下,就会出现
CONNECTION TO TAAGET SYSTEM LOST! Try Again:please reset your target system and selet'Try ..' Settings:Opens a dialog where you can select the monitor... Stop Debugging: 请各位大哥帮帮忙,看下程序是哪出了问题,怎么会出现寻个窗口,如何解决,谢谢,
acall main org 0bh acall zd main: mov r6,#10 mov 30h,#0 mov 31h,#0 mov tmod,#1 mov th0,#3ch mov tl0,#0b0h setb ea setb et0 setb tr0 LOOP:MOV 30H,#0 mov r7,#0feh loop1:mov p2,#0ffh(关断数码管) mov a,@r1 mov dptr,#tab movc a,@a+dptr mov p0,a mov p2,r7 inc r1 mov a,r7 RL a mov r7,a cjne r7,#0fbh,loop1 sjmp loop back: reti zd: mov th0,#3ch mov tl0,#0b0h djnz r6,back mov r0,#30h inc @r0 cjne @r0,#10,back mov 30h,#0 inc r0 inc @r0 cjne @r0,#10,back mov 30h,#0 mov 31h,#0 sjmp back
tab:db 0c0h,0f9h,0a4h,0b0h,99h,92h,82h,0f8h,80h,90h,88h,83h,0c6h,0a1h,86h,8eh end
|