资源描述:
《微机原理课程设计之汽车信号灯》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、POINTMACROXY1,XY2PUSHAXPUSHBXMOVAH,02HMOVDH,XY1MOVDL,XY2MOVBH,0INT10HPOPBXPOPAXENDMCOLORMACROC,XY1,XY2PUSHAXPUSHBXPUSHCXPUSHDXMOVAH,06HMOVBH,CMOVCX,XY1MOVDX,XY2INT10HPOPDXPOPCXPOPBXPOPAXENDMLIGHTMACROLPUSHAXMOVAH,02HMOVDL,LINT21HPOPAXENDMORIGINALMACROPOINT09H,20HLIGHT15P
2、OINT09H,2AHLIGHT15POINT15H,20HLIGHT15POINT15H,2AHLIGHT15POINT0DH,24HLIGHT27POINT0DH,26HLIGHT26ENDMDATASEGMENTWELCOMEDB'WELCOME!THISISMYDESIGN--CARSIGNALLIGHTS!',0AH,0DH,'$'NOTEDB'{ENTER"1--A"TOCONTROLTHELIGHTS,"R"TORETURN}','$'CTR01DB'TURNLEFT!',0AH,0DH,'$'CTR02DB'TURNRI
3、GHT!',0AH,0DH,'$'CTR03DB'HURRY!',0AH,0DH,'$'CTR04DB'BRAKE!',0AH,0DH,'$'CTR05DB'LEFTBRAKE!',0AH,0DH,'$'CTR06DB'RIGHTBRAKE!',0AH,0DH,'$'CTR07DB'BRAKE+HURRY!',0AH,0DH,'$'CTR08DB'LEFTBRAKE+HURRY!',0AH,0DH,'$'CTR09DB'RIHGTBRAKE+HURRY!',0AH,0DH,'$'CTR10DB'STOP!',0AH,0DH,'$'DAT
4、AENDSSTACKSEGMENTSTADB256DUP(?)STACKENDSCODESEGMENTASSUMECS:CODE,DS:DATA,ES:DATA,SS:STACKSTART:XORAX,AXMOVAX,DATAMOVDS,AXMOVES,AXMOVAH,01H;禁止光标显示MOVCX,2000HINT10HCOLOR0AH,0000H,2560HPOINT3,18MOVDX,OFFSETWELCOMEMOVAH,09HINT21HPOINT5,17MOVDX,OFFSETNOTEMOVAH,09HINT21HORIGIN
5、ALRESET:MOVAH,08HINT21HLEFT:CMPAL,'1'JNZRIGHT;COLOR05H,0200H,0509HPOINT7,33MOVDX,OFFSETCTR01MOVAH,09HINT21HCOLOR0AH,0920H,2860HLEFT1:COLOR04H,0920H,1524HORIGINALMOVAH,01HINT16HCMPAL,'R'JZCHEACKJMPLEFT1RIGHT:CMPAL,'2'JNZHURRYPOINT7,33MOVDX,OFFSETCTR02MOVAH,09INT21HCOLOR0A
6、H,0920H,2860HRIGHT1:COLOR04H,0926H,152AHORIGINALMOVAH,01HINT16HCMPAL,'R'JZCHEACKJMPRIGHT1HURRY:CMPAL,'3'JNZBRAKEPOINT7,33MOVDX,OFFSETCTR03MOVAH,09INT21HCOLOR0AH,0920H,2860HHURRY1:COLOR04H,0920H,152AHORIGINALMOVAH,01HINT16HCMPAL,'R'JZCHEACKJMPHURRY1BRAKE:CMPAL,'4'JNZLEFTB
7、RAKEPOINT7,33MOVDX,OFFSETCTR04MOVAH,09INT21HCOLOR0AH,0920H,2860HCOLOR04H,1520H,152AHBRAKE1:ORIGINALMOVAH,01HINT16HCMPAL,'R'JZCHEACKJMPBRAKE1LEFTBRAKE:CMPAL,'5'JNZRIGHTBRAKEPOINT7,33MOVDX,OFFSETCTR05MOVAH,09INT21HCOLOR0AH,0920H,2860HCOLOR04H,1520H,152AHORIGINALLEFTBRAKE1:
8、COLOR04H,0920H,1524HORIGINALMOVAH,01HINT16HCMPAL,'R'JZCHEACKJMPLEFTBRAKE1RIGHTBRAKE:CMPAL,'6'JNZHURRYBR