C51ASM V1.1 Copyright (c) 2009 Atmel Corp. PAGE 1 8051 Macro Assembler C 5 1 A S M V 1.1 ========================================== Source File: button.a51 Object File(s): button.hex List File: button.lst Line I Addr Code Source 1: B 90 key0 equ p1.0 2: B 91 key1 equ p1.1 3: B 92 key2 equ p1.2 4: B 93 key3 equ p1.3 5: B B0 out0 equ p3.0 6: B B1 out1 equ p3.1 7: B B2 out2 equ p3.2 8: B B3 out3 equ p3.3 9: 10: main: 11: 0000 A2 B0 mov c, out0 12: 0002 72 90 orl c, key0 13: 0004 B0 91 anl c, /key1 14: 0006 B0 92 anl c, /key2 15: 0008 B0 93 anl c, /key3 16: 000A 92 B0 mov out0, c 17: 18: 000C A2 B1 mov c, out1 19: 000E 72 91 orl c, key1 20: 0010 B0 90 anl c, /key0 21: 0012 B0 92 anl c, /key2 22: 0014 B0 93 anl c, /key3 23: 0016 92 B1 mov out1, c 24: 25: 0018 A2 B2 mov c, out2 26: 001A 72 92 orl c, key2 27: 001C B0 90 anl c, /key0 28: 001E B0 91 anl c, /key1 29: 0020 B0 93 anl c, /key3 30: 0022 92 B2 mov out2, c 31: 32: 0024 A2 B3 mov c, out3 33: 0026 72 93 orl c, key3 34: 0028 B0 90 anl c, /key0 35: 002A B0 92 anl c, /key2 36: 002C B0 93 anl c, /key3 37: 002E 92 B3 mov out3, c 38: 0030 80 CE jmp main 39: end C51ASM V1.1 Copyright (c) 2009 Atmel Corp. PAGE 2 Segment usage: Code : 50 bytes Data : 0 bytes Idata : 0 bytes Edata : 0 bytes Fdata : 0 bytes Xdata : 0 bytes Bit : 0 bits Register banks used: --- Warnings: 0 Errors: 0 C51ASM V1.1 Copyright (c) 2009 Atmel Corp. PAGE 3 L I S T O F S Y M B O L S ============================= SYMBOL TYPE VALUE LINE -------------------------------------------------------- ??C51ASM NUMBER 8051 ??CODE_SIZE NUMBER 0000 ??DEVICE NUMBER 0000 ??ERAM_SIZE NUMBER 0000 ??FDATA_SIZE NUMBER 0000 ??RAM_SIZE NUMBER 0100 ??VERSION NUMBER 0110 ??_AT89C2051_ NUMBER 0013 ??_AT89C4051_ NUMBER 0014 ??_AT89C51ED2_ NUMBER 001E ??_AT89C51IC2_ NUMBER 001C ??_AT89C51ID2_ NUMBER 001D ??_AT89C51RB2_ NUMBER 0019 ??_AT89C51RC2_ NUMBER 001A ??_AT89C51RC_ NUMBER 0018 ??_AT89C51RD2_ NUMBER 001B ??_AT89C51_ NUMBER 0015 ??_AT89C52_ NUMBER 0016 ??_AT89C55WD_ NUMBER 0017 ??_AT89LP2052_ NUMBER 0001 ??_AT89LP213_ NUMBER 0003 ??_AT89LP214_ NUMBER 0004 ??_AT89LP216_ NUMBER 0005 ??_AT89LP4052_ NUMBER 0002 ??_AT89LP428_ NUMBER 0006 ??_AT89LP52_ NUMBER 0007 ??_AT89LP6440_ NUMBER 0009 ??_AT89LP828_ NUMBER 0008 ??_AT89LS51_ NUMBER 0011 ??_AT89LS52_ NUMBER 0012 ??_AT89S2051_ NUMBER 000A ??_AT89S4051_ NUMBER 000B ??_AT89S51_ NUMBER 000C ??_AT89S52_ NUMBER 000D ??_AT89S53_ NUMBER 000E ??_AT89S8252_ NUMBER 000F ??_AT89S8253_ NUMBER 0010 ??_DEFAULT_ NUMBER 0000 AC BIT D6 ACC DATA E0 B DATA F0 CY BIT D7 DPH DATA 83 DPL DATA 82 EA BIT AF ES BIT AC ET0 BIT A9 ET1 BIT AB EX0 BIT A8 EX1 BIT AA F0 BIT D5 IE DATA A8 IE0 BIT 89 IE1 BIT 8B INT0 BIT B2 C51ASM V1.1 Copyright (c) 2009 Atmel Corp. PAGE 4 SYMBOL TYPE VALUE LINE -------------------------------------------------------- INT1 BIT B3 IP DATA B8 IT0 BIT 88 IT1 BIT 8A KEY0 BIT 90 1 KEY1 BIT 91 2 KEY2 BIT 92 3 KEY3 BIT 93 4 MAIN CODE 0000 10 OUT0 BIT B0 5 OUT1 BIT B1 6 OUT2 BIT B2 7 OUT3 BIT B3 8 OV BIT D2 P BIT D0 P0 DATA 80 P1 DATA 90 P2 DATA A0 P3 DATA B0 PCON DATA 87 PS BIT BC PSW DATA D0 PT0 BIT B9 PT1 BIT BB PX0 BIT B8 PX1 BIT BA RB8 BIT 9A RD BIT B7 REN BIT 9C RI BIT 98 RS0 BIT D3 RS1 BIT D4 RXD BIT B0 SBUF DATA 99 SCON DATA 98 SM0 BIT 9F SM1 BIT 9E SM2 BIT 9D SP DATA 81 T0 BIT B4 T1 BIT B5 TB8 BIT 9B TCON DATA 88 TF0 BIT 8D TF1 BIT 8F TH0 DATA 8C TH1 DATA 8D TI BIT 99 TL0 DATA 8A TL1 DATA 8B TMOD DATA 89 TR0 BIT 8C TR1 BIT 8E TXD BIT B1 WR BIT B6