资源描述:
《十字路口红绿灯闪烁.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、DATASEGMENTIOPORTEQU0D880H-0280HIO8255KEQUIOPORT+283HIO8255AEQUIOPORT+280HIO8255CEQUIOPORT+282HIO8254KEQUIOPORT+28BHIO82542EQUIOPORT+28AHIO82541EQUIOPORT+289HIO82540EQUIOPORT+288HMESSDB'STRIKEANYKEY,RETURNTODOS!',0AH,0DH,'$'COUDB0COU1DB0COUNT1DB0COUNT2DB0COUNT3DB0COUNT4DB0DA
2、TAENDSCODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATAMOVDS,AXMOVDX,OFFSETMESSMOVAH,09HINT21HMOVDX,IO8254KMOVAL,36HOUTDX,ALMOVDX,IO82540MOVAX,50000OUTDX,ALNOPNOPMOVAL,AHOUTDX,ALMOVDX,IO8255KMOVAL,90HOUTDX,ALMOVDX,IO8255CMOVAL,00OUTDX,ALLL:MOVAH,01HINT16HJNZQUIT1MOVDX,IO8254K
3、MOVAL,70HOUTDX,ALMOVDX,IO82541MOVAL,0FFHOUTDX,ALNOPNOPOUTDX,ALMOVDX,IO8254KMOVAL,90HOUTDX,ALMOVDX,IO82542MOVAL,100OUTDX,ALMOVDX,IO8255CMOVAL,01HOUTDX,ALJMPA0QUIT1:JMPQUITA0:MOVDX,IO8255AA1:INAL,DXANDAL,01HJZA1MOVDX,IO8255CMOVAL,00HOUTDX,ALMOVDX,IO8254KMOVAL,70HOUTDX,ALMOVDX,
4、IO82541INAL,DXMOVBL,ALINAL,DXMOVBH,ALMOVAX,0FFFFHSUBAX,BXCALLDISPMOVDL,0DHMOVAH,02INT21HMOVDL,0AHMOVAH,02INT21HJMPLLDISPPROCNEARMOVDX,0000HMOVCX,03E8HDIVCXMOVCOUNT1,ALMOVAX,DXMOVCL,64HDIVCLMOVCOUNT2,ALMOVAL,AHMOVAH,00HMOVCL,10DIVCLMOVCOUNT3,ALMOVCOUNT4,AHMOVAL,COUNT1CALLDISP
5、1MOVAL,COUNT2CALLDISP1MOVAL,COUNT3CALLDISP1MOVAL,COUNT4CALLDISP1RETDISPENDPDISP1PROCNEARANDAL,0FHCMPAL,09HJLENUMADDAL,07HNUM:ADDAL,30HMOVDL,ALMOVAH,02INT21HRETDISP1ENDPQUIT:MOVAH,4CHINT21HCODEENDSENDSTARTAllowIOforPortTalkV2.0Copyright2002CraigPeacockAddress0xD880(IOPMOffset
6、0x1B10)hasbeengrantedaccess.Address0xD888(IOPMOffset0x1B11)hasbeengrantedaccess.Address0xD890(IOPMOffset0x1B12)hasbeengrantedaccess.Address0xD898(IOPMOffset0x1B13)hasbeengrantedaccess.Address0xD8A0(IOPMOffset0x1B14)hasbeengrantedaccess.Address0xD8A8(IOPMOffset0x1B15)hasbeeng
7、rantedaccess.Address0xD8B0(IOPMOffset0x1B16)hasbeengrantedaccess.Address0xD8B8(IOPMOffset0x1B17)hasbeengrantedaccess.ExecutingwithaErrorinCreateProcessProcessIDof0PortTalkDeviceDriverhassetIOPMforProcessID0.E:MASM>kdSTRIKEANYKEY,RETURNTODOS!0255025509051678154710120660