A51 MACRO ASSEMBLER S 02/20/2010 11:16:12 PAGE 1
MACRO ASSEMBLER A51 V7.07
OBJECT MODULE PLACED IN s.OBJ
ASSEMBLER INVOKED BY: D:\程序\keil 51\C51\BIN\A51.EXE s.asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
0000 1 org 0000h
0000 0130 2 ajmp main
0030 3 org 0030h
0030 75B0F0 4 main:mov P3,#0f0h
0033 E5B0 5 mov a,P3
0035 B4F00C 6 cjne a,#0f0h,de
0038 E9 7 mov a,r1
0039 9000A6 8 mov dptr,#tab
003C 93 9 movc a,@a+dptr
003D 75A001 10 mov P2,#01h
0040 F580 11 mov P0,a
12
0042 0130 13 ajmp main
0044 12009D 14 de:lcall delay
0047 B4F002 15 cjne a,#0f0h,go2
004A 0130 16 ajmp main
004C 7AFE 17 go2:mov r2,#0feh
004E 7800 18 mov r0,#00h
0050 19 st:
0050 8AB0 20 mov P3,r2
0052 E5B0 21 mov a,P3
0054 20E704 22 jb acc.7,one
0057 7400 23 mov a,#00h
0059 0170 24 ajmp lkp
005B 20E604 25 one:jb acc.6,two
005E 7401 26 mov a,#01h
0060 0170 27 ajmp lkp
0062 20E504 28 two:jb acc.5,thr
0065 7402 29 mov a,#02h
0067 0170 30 ajmp lkp
0069 20E40E 31 thr:jb acc.4,next
006C 7403 32 mov a,#03h
006E 0170 33 ajmp lkp
0070 28 34 lkp:add a,r0
0071 B41002 35 cjne a,#10h,lkp1
0074 7400 36 mov a,#00h
0076 F9 37 lkp1:mov r1,a
0077 020030 38 ljmp main
007A 39 next:
007A 08 40 inc r0
007B 08 41 inc r0
007C 08 42 inc r0
007D 08 43 inc r0
007E B80B04 44 cjne r0,#0bh,l1
0081 7800 45 mov r0,#00h
0083 0150 46 ajmp st
0085 BAFE04 47 l1:cjne r2,#0feh,l2
0088 7AFD 48 mov r2,#0fdh
008A 0150 49 ajmp st
008C BAFD04 50 l2:cjne r2,#0fdh,l3
008F 7AFB 51 mov r2,#0fbh
0091 0150 52 ajmp st
0093 BAFB04 53 l3:cjne r2,#0fbh,l4
0096 7AF7 54 mov r2,#0f7h
0098 0150 55 ajmp st
009A 56 l4:
57
009A 020030 58 ljmp main
A51 MACRO ASSEMBLER S 02/20/2010 11:16:12 PAGE 2
009D 7F0D 59 delay:mov r7,#0dh
009F 7EFF 60 del1:mov r6,#0ffh
00A1 DEFE 61 del2:djnz r6,del2
00A3 DFFA 62 djnz r7,del1
00A5 22 63 ret
00A6 3F065B4F 64 tab:DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H
00AA 666D7D07
00AE 7F6F777C 65 db 7FH,6FH,77h,7ch,39h,5eh,79h,71h
00B2 395E7971
66
67 end
A51 MACRO ASSEMBLER S 02/20/2010 11:16:12 PAGE 3
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
ACC. . . . . . . . D ADDR 00E0H A
DE . . . . . . . . C ADDR 0044H A
DEL1 . . . . . . . C ADDR 009FH A
DEL2 . . . . . . . C ADDR 00A1H A
DELAY. . . . . . . C ADDR 009DH A
GO2. . . . . . . . C ADDR 004CH A
L1 . . . . . . . . C ADDR 0085H A
L2 . . . . . . . . C ADDR 008CH A
L3 . . . . . . . . C ADDR 0093H A
L4 . . . . . . . . C ADDR 009AH A
LKP. . . . . . . . C ADDR 0070H A
LKP1 . . . . . . . C ADDR 0076H A
MAIN . . . . . . . C ADDR 0030H A
NEXT . . . . . . . C ADDR 007AH A
ONE. . . . . . . . C ADDR 005BH A
P0 . . . . . . . . D ADDR 0080H A
P2 . . . . . . . . D ADDR 00A0H A
P3 . . . . . . . . D ADDR 00B0H A
ST . . . . . . . . C ADDR 0050H A
TAB. . . . . . . . C ADDR 00A6H A
THR. . . . . . . . C ADDR 0069H A
TWO. . . . . . . . C ADDR 0062H A
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)