、汇编指令系统(assembly instruction system of and )

、汇编指令系统(assembly instruction system of and )

ID:13965358

大小:68.50 KB

页数:32页

时间:2018-07-25

、汇编指令系统(assembly instruction system of  and )_第1页
、汇编指令系统(assembly instruction system of  and )_第2页
、汇编指令系统(assembly instruction system of  and )_第3页
、汇编指令系统(assembly instruction system of  and )_第4页
、汇编指令系统(assembly instruction system of  and )_第5页
资源描述:

《、汇编指令系统(assembly instruction system of and )》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、8086、8088汇编指令系统(Assemblyinstructionsystemof8086and8088)18086/8088instructionsystemThe8086/8088commandsystem1.Datatransferinstructions1.GeneraldatatransferinstructionsMOV(Move)transmissionPUSHontothestackPOPfromthestackXCHG(Exchange)Exchange.MOVinstructionThef

2、ormatis:MOVDST,SRCOperation:(DST)<-(SRC).PUSHtostackinstructionTheformatis:PUSHSRCOperation:(SP)<-(SP)-2((SP)+1(SP))<-(SRC).popoutstackinstructionTheformatis:POPDSTOperationoperation:(DST)<-((SP+1),(SP))(SP)<-(SP)+2.xchgexchangeinstructionsFormat:XCHGOPR1,OPR

3、2Operation:(OPR1)<->(OPR2)2.Specialtransmissioninstructionsforaccumulator(Input)INtheInputTheOUTOutput(Output)XLAT(Translate)escapeThissetofinstructionsislimitedtousingtheaccumulatorAXorALtotransmitinformation.INinputinstructionLongformat:INAL,PORT(byte)INAX,

4、PORT(words)Operation:(AL)<-(PORT)(bytes)(AX)<-(PORT+1,PORT)(words)Shortformat:INAL,DX(bytes)INAX,DX(words)Operation:AL<-((DX))(byte)AX<-(DX(DX)+1)(words).outoutputinstructionLongformat:OUTPORT,AL(byte)TheOUTPORT,AX(words)Operation:(PORT)<-(AL)(bytes)(thePORT+

5、1,PORT)<-(AX)(words)Shortformat:OUTDX,AL(byte)TheOUTDX,AX(words)Operationtobeperformed:((DX))<-(AL)(bytes)((DX)+1,(DX))<-AX(words)INIBM-PC,externaldevicescanhaveupto65536I/OPORT,PORT(i.e.peripheralsPORTaddress)of0000~FFFFH.Thetop256ports(0~FFH)canbespecifiedI

6、Ntheinstructiondirectly,thisisthelongformatofthePORT,themachineinstructionwithtwobytes,saidthesecondbyteisthePORTnumber.SowhenusingalongformatcanbespecifieddirectlyINthespecifiedPORTnumber,butonly256portsbefore.WhenthePORTnumber>=256,canonlyusetheshortformat,

7、atthispoint,youmustfirstputthePORTnumberINtheDXregisters(PORTnumberfrom0000to0FFFFH),thenuseINorOUTinstructionstotransmitinformation.XLATchangecommandFormat:XLATOPROr:XLATOperation:(AL)<(BX)+(AL))3.EffectiveaddresstosendregisterinstructionTheLEA(Loadeffective

8、address)validaddresstosendtheregisterTheLDS(LoadDSwithPointer)PointersendsregistersandDSTheLoadESwithPointersendsregistersandES.LEAeffectiveaddressdeliveryregisterTheformatis:LEAREG,SRCOp

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。