ORG 0000HAJMP MAINORG 0003HLJMP TOINTORG 0030H
MAIN: MOV SP,#70H SETB IT0 SETB EA SETB EX0 AJMP $ ORG 0100H TOINT:PUSH R7 PUSH R6CLR EA LOOP5:LJMP T1 JB P1.0,LOOP5 LOOP3:LJMP T1 JB P1.1,LOOP5 SETB P1.7 LJMP T1 LJMP LOOP3LOOP1:CLR P1.7 SETB EA POP R6 POP R7 RETI ORG 4000H TI: MOV R7,#5 LOOP8:MOV R6,#96LOOP7:MOV R5,#250LOOP6:NOP NOP DJNZ R5,LOOP6 DJNZ R6,LOOP7 DJNZ R7,LOOP8 RET
用来实现输入管脚电位检测并控制输出管脚电位。报N个错误:Rebuild target 'Target 1'assembling STARTUP.A51...assembling aa.asm...aa.asm(13): error A22: EXPRESSION TYPE DOES NOT MATCH INSTRUCTIONaa.asm(14): error A22: EXPRESSION TYPE DOES NOT MATCH INSTRUCTIONaa.asm(16): error A46: CODE-ADDRESS EXPECTEDaa.asm(18): error A46: CODE-ADDRESS EXPECTEDaa.asm(21): error A46: CODE-ADDRESS EXPECTEDaa.asm(25): error A22: EXPRESSION TYPE DOES NOT MATCH INSTRUCTIONaa.asm(26): error A22: EXPRESSION TYPE DOES NOT MATCH INSTRUCTIONaa.asm(29): error A8: ATTEMPT TO DEFINE AN ALREADY DEFINED LABELaa.asm(37): warning A41: MISSING 'END' STATEMENTTarget not created
此帖出自
小平头技术问答
建议学c
一周热门 更多>