重庆大学计算机硬件实验一

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

实验一第一题stackasegmentstackdb100dup(?)stackaendsdatasegmentin1db00001111bin2db10101010bin3db11111111bin4db11111011bfdb?dataendscodesegmentassumecs:code,ds:data,ss:stackamainprocfarstart:movax,datamovds,axmovax,stackamovss,axmoval,in1notalmovah,in2oral,ahmovbl,in3andbl,in4xoral,blmovf,alretmainendpcodeendsendstart第二题stackasegmentstackdb100dup(?)stackaendsdatasegmentnum1dd2a8b7654hnum2dw5abchnum3dw?num4dw?dataendscodesegmentassumecs:code,ds:data,ss:stackamainprocfarstart:movax,datamovds,axmovax,stackamovss,axmovax,wordptrnum1movdx,wordptrnum1+2divnum2movnum3,axmovnum4,dxretmainendpcodeendsendstart第三题stackasegmentstackdb100dup(?)stackaendsdatasegmentarydb58h,?,?dataendscodesegmentassumecs:code,ds:data,ss:stackamainprocfarstart:movax,datamovds,axmovax,stackamovss,axleasi,arymoval,[si]shral,4mov[si+1],almoval,[si]andal,0fhmov[si+2],alretmainendpcodeendsendstart实验二第一题datasegmentadb55hbdb66hcdb55hkdb?dataendscodesegmentassumecs:code,ds:datastart:movax,datamovds,axmoval,bcmpal,ajznextcmpal,cjznext1movah,acmpah,cjznext1movk,0l0:movah,4chint21hnext:cmpal,cjznext2jmpnext1next1:movk,1jmpl0next2:movk,2jmpl0codeendsendstart第二题datasegmentadb55hbdb42hcdb38hndb?dataendscodesegmentassumecs:code,ds:datastart:movax,datamovds,axmoval,acmpal,bjnanextsubal,baddal,cmovn,all0:movah,4chint21hnext:addal,bmovn,aljmpl0codeendsendstart

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功