|
org 0000h ljmp main org 001bh ljmp time0 org 0030h main:mov sp,#60h mov tomd,#10h mov th0,#4ch mov tl0,#00h setb et0 setb ea mov dptr,#table mov b,#0 setb tr0 sjmp $ time0:mov th0,#4ch push acc push psw inc b mov a,b cjne a,#20,exit mov b,#0 clr a movc a,@a+dptr mov p1,a inc dptr cjne a,#80h,exit mov dptr,#table exit:pop psw pop acc reti table: 01h,02h,04h,08h,10h,20h,40h,80h |
|