?;是否到79,不是,转KS?CJNEA,#16H,AGAIN;按下的不是exc(给定值0FFH),是则跳转到run?LJMPRUN?;跳转到步进电机控制部分AGAIN:?LJMPMAINKS:?DECR1?LJMPMAIN1RUN:MOVA,7EH;取(7EH)当前所存?JZZHEN ;跳转到正转?JNZFAN ;跳转到反转?SJMP$ZHEN:?MOVP1,#03H;正转部分?ACALLDELAY?MOVP1,#06H?ACALLDELAY?MOVP1,#0CH?ACALLDELAY?MOVP1,#09H?ACALLDELAY;调用延时子程序?ANL79H,#0FH?ANL7AH,#0FH?ANL7BH,#0FH?ANL7CH,#0FH?LCALLDIR?LCALLDIRMOVR5,79H?CJNER5,#0,Z1?DEC79HMOVR5,7AH?CJNER5,#0,Z2?DEC7AHMOVR5,7BH?CJNER5,#0,Z3?DEC7BHMOVR5,7CH?CJNER5,#0,Z4?LJMPMAINZ1:DEC79HLJMPZHENZ2:DEC7AHLJMPZHENZ3:DEC7BHLJMPZHENZ4:DEC7CHLJMPZHENFAN:?MOVP1,#09H;反转部分?ACALLDELAY?MOVP1,#0CH?ACALLDELAY?MOVP1,#06H?ACALLDELAY?MOVP1,#03H?ACALLDELAY?ANL79H,#0FH?ANL7AH,#0FH?ANL7BH,#0FH?ANL7CH,#0FH?LCALLDIR?LCALLDIRMOVR5,79H?CJNER5,#0,F1?DEC79HMOVR5,7AH?CJNER5,#0,F2?DEC7AHMOVR5,7BH?CJNER5,#0,F3?DEC7BHMOVR5,7CH?CJNER5,#0,F4