ORG 0000H
LJMP MAIN
ORG 0100H
MAIN:
MOV R1, #30H
MOV DPTR,#TAB
lp:MOVC A,@A+DPTR
MOV @R1,A
MOV R0,#40H
MOV B,#64H
DIV AB
MOV @R0,A
INC R0
MOV A,#0AH
XCH A,B
DIV AB
SWAP A
ADD A,B
MOV @R0,A
clr a
inc DPTR
inc R1
AJMP lp
TAB: DB 1100B,0111110B,000101B,1010101B
END
文章评论(0条评论)
登录后参与讨论