相关代码 |
|
;8-11-2.ASM $MOD51 BUFFER DATA 030H NUMBER EQU 10 CHECK BIT P1.0 ; MOV BUFFER,#11 MOV A,BUFFER CJNE A,#NUMBER,NEQ ; (BUFFER)-NUMBER NEQ: JC ST SJMP GT_EQ ;(BUFFER)>=NUMBER GT_EQ: SETB CHECK SJMP $ ;(BUFFER) ST: CLR CHECK SJMP $ ; END
相关资源 |
|