cao192:
请帮我检查程序,运行时在8279第二位、第三位显示两个00(从左至右)。
rg 0000h
ljmp start
org 0023h
ajmp subg
org 0100h
start: mov 30h,#00h
mov sp,#60h
mov scon,#50h
mov pcon,#00h
mov tmod,#20h
mov th1,#0fdh
mov tl1,#0fdh
setb ea
setb es
setb tr1
wait: lcall display
ajmp wait
org 0300h
subg:mov 50h,a
clr ri
mov 40h,sbuf
mov a,50h
reti
display:mov dptr,#7001h
movx @dptr,a
mov a,#32h
movx @dptr,a
acall offled
mov dptr,#7001h
mov a,#80h
movx @dptr,a
mov dptr,#7000h
mov a,#0c8h
movx @dptr,a
mov 30h,#80h
mov 31h,#40h
table: db 0ch,9fh,4ah,0bh,99h,29h,28h,8fh
db 08h,09h,88h,38h,6ch,1ah,68h,0e8h
db 0c8h,3ah,0ech,0ffh
offled: mov a,#0dfh
mov dptr,#7001h
movx @dptr,a
offled1: movx a,@dptr
jb 0e7h,offled1
dispall:mov 30h,#80h
mov 31h,#40h
mov r7,#03h
disp1: mov dptr,#7001h
mov a,30h
movx @dptr,a
mov r0,31h
mov a,@r0
mov dptr,#table
movc a,@a+dptr
mov dptr,#7000h
movx @dptr,a
inc 31h
inc 30h
djnz r7,disp1
mov 80,#40h
;mov 81,#41h
;mov 82,#42h
loop: mov dptr,#table
mov a,@r0
movc a,@a+dptr
movx @r1,a
inc r1
inc r0
djnz r7,loop
ret
end