A51 MACRO ASSEMBLER AD_LAMP_TABLE_ 07/23/2006 20:51:23 PAGE 1
MACRO ASSEMBLER A51 V8.00
OBJECT MODULE PLACED IN Ad Lamp(Table).OBJ
ASSEMBLER INVOKED BY: E:\Keil\C51\BIN\A51.EXE Ad Lamp(Table).asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
0000 1 ORG 00H
0000 900022 2 START: MOV DPTR,#TABLE ;数据指针指向表头地址
0003 7400 3 S1: MOV A,#00H ;设置地址偏移量
0005 93 4 MOVC A,@A+DPTR ;根据DPRT到表内取显示码
0006 B40103 5 CJNE A,#01H,S2 ;判断是否是结束码
0009 020000 6 LJMP START
000C F590 7 S2: MOV P1,A ;将取到的显示码送P1口显示
000E 120015 8 LCALL DELAY
0011 A3 9 INC DPTR ;数据指针加1
0012 020003 10 LJMP S1
0015 7D14 11 DELAY: MOV R5,#20 ;延时子程序
0017 7E14 12 D1: MOV R6,#20
0019 7FF8 13 D2: MOV R7,#248
001B DFFE 14 DJNZ R7,$
001D DEFA 15 DJNZ R6,D2
001F DDF6 16 DJNZ R5,D1
0021 22 17 RET
0022 FEFDFBF7 18 TABLE: DB 0FEH,0FDH,0FBH,0F7H ;显示码表
0026 EFDFBF7F 19 DB 0EFH,0DFH,0BFH,07FH
002A FEFDFBF7 20 DB 0FEH,0FDH,0FBH,0F7H
002E EFDFBF7F 21 DB 0EFH,0DFH,0BFH,07FH
0032 7FBFDFEF 22 DB 07FH,0BFH,0DFH,0EFH
0036 F7FBFDFE 23 DB 0F7H,0FBH,0FDH,0FEH
003A 7FBFDFEF 24 DB 07FH,0BFH,0DFH,0EFH
003E F7FBFDFE 25 DB 0F7H,0FBH,0FDH,0FEH
0042 00FF00FF 26 DB 00H, 0FFH,00H, 0FFH
0046 01 27 DB 01H
28 END
A51 MACRO ASSEMBLER AD_LAMP_TABLE_ 07/23/2006 20:51:23 PAGE 2
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
D1 . . . . . . . . C ADDR 0017H A
D2 . . . . . . . . C ADDR 0019H A
DELAY. . . . . . . C ADDR 0015H A
P1 . . . . . . . . D ADDR 0090H A
S1 . . . . . . . . C ADDR 0003H A
S2 . . . . . . . . C ADDR 000CH A
START. . . . . . . C ADDR 0000H A
TABLE. . . . . . . C ADDR 0022H A
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)