汇编小程序
源代码在线查看: project.lst
A51 MACRO ASSEMBLER PROJECT 07/08/2012 21:14:42 PAGE 1
MACRO ASSEMBLER A51 V8.02a
OBJECT MODULE PLACED IN project.OBJ
ASSEMBLER INVOKED BY: C:\Keil\C51\BIN\A51.EXE project.asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
0000 1 ORG 0000H
0000 0130 2 AJMP MAIN
0030 3 ORG 0030H
0030 74FB 4 MAIN: MOV A,#0FBH ;累加器A放入0FBH
0032 7824 5 MOV R0,#024H ;寄存器R0放入初始值024H
0034 F4 6 CPL A ;累加器A求反
0035 F580 7 MOV P0,A ;把累加器A的内容放入P0口
0037 74FB 8 MOV A,#0FBH ;累加器A放入初始值0FBH
0039 48 9 ORL A,R0 ;寄存器R0与累加器A相‘或’