您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 伟纳电子--51单片机入门教学==平凡的单片机教程==目录
®®®®®LJMPSTARTSTARTA,B,C,D,E,F'0'FFH0FFHC0H0C0H;5FH;01H,,'1','0';38H,,2ORG0000HLJMPSTARTORG0003H;0NOPRETSTART:;MOVSP,5FH..;***********************************************;;***********************************************MAIN:LCALLKEYLJMPMAIN;**********************************************;;*******************************************;***********************************************;,0;***************************************KEY:PUSHPSW;PSWSETBRS0;MOVSBUF,#00HKEY_DISP:...POPPSWRET;*********************************************************;;********************************************************..MOVA,#3+5;MOVA,#8,,'#'MOVA,3+5;MOVA,8,,'#'3+5MOVA,5-3;MOVA,2,MOVA,3-5;MOVA,0FEH,MOVA,#5-3;MOVA,#2,MOVA,#5*3;MOVA,#15,MOVA,#6/3;MOVA,#2,MOVA,#6MOD3;MOVA,#0,MOVA,01010010SHR3;MOVA,E3H,,010100103MOVA,#21SHL5;MOVA,#0A0H,,215MOVA,#NOT0A5H;MOVA,#5AH,0A5HMOVA,#10101111OR11110000;MOVA,#57H,MOVA,#10101010AND00001111;MOVA,#52H,MOVA,#4B2HXOR3197;MOVA,#0CFH,MOVA,#(HIGH4567H);MOVA,#45H,4567HMOVA,LOW4567H;MOVA,67H,4567HEND:CCaaaattdd.......ddss:CC00H~10H,aaaatttt0ddccddssss&PAGE&TITLESUBTITLETheCyberneticMicroSysystems8051FamilyAssembler,Version3.03Page109-10-83I+END=®®ABCMACROP1,P2,P3MOVA,P1MOVR4,P2P3DECR5ENDMJKMACROP1,X5,OPC1,ARG1,ARG2INCX5MOVA,P1OPC1ARG1,ARG2ENDMCLRAMOVR3,AABCR2,#25H,INCR3NOPJK@R0,R2,ADD,A,R6NOPABC#4FH,#39H,DECANOPENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page108-27-96ABCMACROP1,P2,P3MOVA,P1MOVR4,P2P3DECR5ENDMJKMACROP1,X5,OPC1,ARG1,ARG2INCX5MOVA,P1OPC1ARG1,ARG2ENDM0000E4CLRA0001FBMOVR3,A0002ABCR2,#25H,INCR3+0002EAMOVA,R2+00037C25MOVR4,#25H+00050BINCR3+00061DDECR5000700NOP0008JK@R0,R2,ADD,A,R6+00080AINCR2+0009E6MOVA,@R0+000A2EADDA,R6000B00NOP000CABC#4FH,#39H,DECA+000C744FMOVA,#4FH+000E7C39MOVR4,#39H+001014DECA+00111DDECR5001200NOP0000ENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page208-27-96;%TSymbolNameTypeValueABC..............M0000JK...............M0000;%Z00Errors(0000)ABCMACROP1,P2,P3MOVA,P1MOVR4,P2P3DECR5ENDMJKMACROP1,X5,OPC1,ARG1,ARG2INCX5MOVA,P1OPC1ARG1,ARG2ENDMNOPJK#33H,R3,NOPSWAPANOPJKR4,R2,ADDC,A,@R1,#66HNOPJK#40H,R4,,DECR2NOPENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page108-27-96ABCMACROP1,P2,P3MOVA,P1MOVR4,P2P3DECR5ENDMJKMACROP1,X5,OPC1,ARG1,ARG2INCX5MOVA,P1OPC1ARG1,ARG2ENDM000000NOP0001JK#33H,R3,NOP+00010BINCR3+00027433MOVA,#33H+000400NOP,0005C4SWAPA000600NOP0007JKR4,R2,ADDC,A,@R1,#66H+00070AINCR2+0008ECMOVA,R4+000937ADDCA,@R1000A00NOP000BJK#40H,R4,,DECR2+000B0CINCR4+000C7440MOVA,#40H+000E1ADECR2,000F00NOP0000ENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page208-27-96;%TSymbolNameTypeValueABC..............M0B0DJK...............M0000;%Z00Errors(0000)LMACMACROP1,P2,L1ANLA,P1JZL1ORLA,P2L1:MOV@R1,AINCR1ENDMMOVR1,#2AHMOVA,#65HLMACR3,#0F0H,R3ANDA0MOVA,#23HLMACR5,#07H,R5ANDA0NOPENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page108-27-96LMACMACROP1,P2,L1ANLA,P1JZL1ORLA,P2L1:MOV@R1,AINCR1ENDM0000792AMOVR1,#2AH00027465MOVA,#65H0004LMACR3,#0F0H,R3ANDA0+00045BANLA,R3+00056002JZR3ANDA0+000744F0ORLA,#0F0H+0009F7R3ANDA0:MOV@R1,A+000A09INCR1000B7423MOVA,#23H000DLMACR5,#07H,R5ANDA0+000D5DANLA,R5+000E6002JZR5ANDA0+00104407ORLA,#07H+0012F7R5ANDA0:MOV@R1,A+001309INCR1001400NOP0000ENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page208-27-96;%TSymbolNameTypeValueLMAC..............M0000R3ANDA0............L0009R5ANDA0............L0012;%Z00Errors(0000)CHKMACRON1,N2XRLA,N1JZMATCH1XRLA,N2JNZNOMATCHADDA,#15HMATCH1:ADDA,#7MOVR4,ANOMATCH:MOVR5,AENDMMOVA,#23HCHK#65H,R3MOVA,@R0CHKR2,#23HNOPENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page108-27-96CHKMACRON1,N2XRLA,N1JZMATCH1XRLA,N2JNZNOMATCHADDA,#15HMATCH1:ADDA,#7MOVR4,ANOMATCH:MOVR5,AENDM00007423MOVA,#23H0002CHK#65H,R3+00026465XRLA,#65H+00046005JZMATCH10001+00066BXRLA,R3+00077005JNZNOMATCH0001+00092415ADDA,#15H+MATCH10001:+000B2407ADDA,#7+000DFCMOVR4,A+NOMATCH0001:+000EFDMOVR5,A000FE6MOVA,@R00010CHKR2,#23H+00106AXRLA,R2+00116006JZMATCH10002+00136423XRLA,#23H+00157005JNZNOMATCH0002+00172415ADDA,#15H+MATCH10002:+00192407ADDA,#7+001BFCMOVR4,A+NOMATCH0002:+001CFDMOVR5,A001D00NOP0000ENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page208-27-96;%TSymbolNameTypeValueCHK..............M0000MATCH10001...........L000BMATCH10002...........L0019NOMATCH0001..........L000ENOMATCH0002..........L001C;%Z00Errors(0000)CONMACROX1,X2,SI,L1MOVR2,#X1MOVR2,#X1ADDA,#X1+5-X2DB'STRING&SI&'JNZLAB&L1LAB&L1:XRLA,R3ENDMCLRACON23H,65H,SPECIAL,57ENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page108-27-96CONMACROX1,X2,SI,L1MOVR2,#X1MOVR2,#X1ADDA,#X1+5-X2DB'STRING&SI&'JNZLAB&L1LAB&L1:XRLA,R3ENDM0000E4CLRA0001CON23H,65H,SPECIAL,57+00017A23MOVR2,#23H+00037A23MOVR2,#23H+000524C3ADDA,#23H+5-65H+0007535452DB'STRINGSPECIAL'+000A494E475350454349414C+00147000JNZLAB57+LAB57:+00166BXRLA,R30000ENDTheCyberneticMicroSystems8051FamilyAssembler,Version3.03Page208-27-96;%TSymbolNameTypeValueCON..............M0000LAB57.............L0016;%Z00Errors(0000)CONMACROC1,C2,P1,P2,P3MOVA,P1IFC1INCR3MOVR4,AENDIFIFC2MOVR5,P2
本文标题:伟纳电子--51单片机入门教学==平凡的单片机教程==目录
链接地址:https://www.777doc.com/doc-66729 .html