
; This program is edit by Chen Weiwu
; Date 2012/11/08 10:42:36
;--------------------------------------------
Led0 Bit P1.0
Led1 Bit P1.1
org 000H
ajmp main
;--------------------------
ORG 003H
AJMP INTERRUPT0
;--------------------------
ORG 013H
AJMP INTERRUPT1
;-----Initiation-----
InterType: SETB EA
Setb IT0
Setb EX0
CLR PX0
Setb IT1
Setb EX1
Setb PX1
ret
;--------------------
INTERRUPT0:
clr led0
jnb int0,$
RETI
INTERRUPT1:
clr led1
jnb int1,$
setb led1
RETI
;--------------------
main:
acall InterType
Mainloop: setb led0
setb led1
Ajmp Mainloop
;--------------------
end