org 00h
start:
mov a, #00h
mov p0, a
mov p2, a
display:
mov r0, #2
mov 30H, #00h
scan_sets:
mov r1, #00h
mov r2, #0ffh
dis_sets:
mov r3, #32
mov r4, 30h
dis_char:
call load
inc r1
djnz r3, dis_char
mov r1, #00
dhnz r2, dis_sets
mov 30h, r4
djnz r0, scan_sets
mov r5, #200
call delay
jmp start
delay:
mov r1, #248
d1: djnz r1, $
djnz r0, d1
ret
table:
db 42h, 42h, 42h, 7eh, 42h, 42h, 42h, 42h
end
这是个8x8的发光二极管点整的显示程序,蛋似在keil上运行不了。求高手帮忙看一下那儿出错了? 谢谢!
[ 本帖最后由 罗达爷 于 2011-4-11 16:50 编辑 ]