资源描述:
《王爽汇编语言1至7章学习笔记代码》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、3-1assumecs:code,ds:data,ss:stackstacksegmentdw512dup(0)stackendscodesegmentdw512dup(0)datasegmentdataendsstart:movax,datamovds,axmovax,stackmovss,axmovax,codemovbx,0movax,ss:[bx]codeendsendstart7-1assumecs:code,ds:datadatasegmentdb'welcometomasm!'db'................'dataendscodesegmentsta
2、rt:movax,datamovds,axmovcx,8movsi,0s:movax,0[si]mov16[si],axaddsi,2loopsmovax,4c00hint21hcodeendsendstart7-6assumecs:code,ds:datadatasegmentdb'1.file'db'2.edit'db'3.search'db'4.view'db'5.options'db'6.help'dataendscodesegmentstart:movax,datamovds,axmovbx,0movcx,6s:moval,[bx+4]andal,11011111
3、bmov[bx+4],aladdbx,16loopsmovax,4c00hint21hcodeendsendstart7-8assumecs:code,ds:datadatasegmentdb'1.file'db'2.edit'db'3.search'db'4.view'db'5.options'db'6.help'dataendscodesegmentstart:movax,datamovds,axmovbx,0movcx,6s0:movdx,cxmovsi,4movcx,7s1:moval,[bx+si]andal,11011111bmov[bx+si],alincsi
4、loops1movcx,dxaddbx,16loops0movax,4c00hint21hcodeendsendstart7-9assumecs:code,ds:datadatasegmentdb'1.file'db'2.edit'db'3.search'db'4.view'db'5.options'db'6.help'dw'0'dataendscodesegmentstart:movax,datamovds,axmovbx,0movcx,6s0:movds:[40h],cxmovsi,4movcx,7s1:moval,[bx+si]andal,11011111bmov[b
5、x+si],alincsiloops1movcx,ds:[40h]addbx,16loops0movax,4c00hint21hcodeendsendstart8-1assumecs:code,ds:data,ss:stackdatasegmentdb'test............'dataendsstacksegmentdw0,0,0,0,0,0,0,0,0stackendscodesegmentstart:movax,datamovds,axmovbx,0movbp,1hmovsi,0movdi,0movax,[bp]movss,[bp]movax,4c00hint
6、21hcodeendsendstart