trimvalue16bit EQU 030H ;让程序中trimvalue16bit调用030H MOV trimvalue16bit ,#00H ;把00H传送到030H MOV A,#0F1H ;把0f1H传送到累加器A ADD A,trimvalue16bit+01H ;把累加器A的内容加031H的内容后传回累加器A里面 MOV trimvalue16bit+01H,A ;把累加器A的内容传送到031H MOV A,#0FFH ;把0ffH传送到累加器A ADDC A,trimvalue16bit ;把累加器A的内容加030H的内容后传回累加器A里面 MOV trimvalue16bit,A ;把累加器A的内容传送到030H内 |