相关代码 |
|
;5-9-2.ASM ; RESET EQU 0000H ;RESET DEBUG EQU 0 ;PROGRAM IN RUN MODE ; $MOD51 ORG RESET ;RESET FROM 0000H MOV A,#12H ;A=12H ADD A,#00110100B ;A=A+34H IF (DEBUG) MOV P1,A ;P1=A IN DEBUG MODE ELSE MOV SBUF,A ;SBUF=A IN NOT DEBUG MODE ENDIF END
相关资源 |
|