当前位置: 首页 > news >正文

冒险岛钓鱼网站做啥用百度广告投诉电话

冒险岛钓鱼网站做啥用,百度广告投诉电话,做搜狗手机网站排名软,免费的公司网站怎么做一、实验名称:实验6 输入一个16进制数,把它转换为10进制数输出 实验目的: 培养汇编中设计子程序的能力 实验过程: 源代码: data segmentbuff1 db Please input a number(H):$buff2 db 30,?,30 dup(?),13,10buff3 …

一、实验名称:实验6 输入一个16进制数,把它转换为10进制数输出

  • 实验目的:

培养汇编中设计子程序的能力

  • 实验过程:

源代码:

data segmentbuff1 db 'Please input a number(H):$'buff2 db 30,?,30 dup(?),13,10buff3 db 'The consequent is:$'data endscode segmentassume cs:code,ds:datamain proc farpush dsxor ax,axpush axmov ax,datamov  ds,axcall tips1      ;调用第一个字符串,提示用户输入call input1     ;调用程序,将数字输入进缓冲区保存call get4h      ;将缓冲区的ASCII码转换成实际的二进制xor ax,axmov al,byte ptr[buff2+1]                ;di用来计数(处理4位的十六进制)mov di,axlea si,buff2+2mov bx,0;mov bp,1000h            ;dx位权call functioncall tips2      ;调用第三个字符串,显示结果call btod     ;将缓冲区的二进制转换成10进制ASCII码输出mov ah,4chint 21hretmain endptips1 proc nearmov dx,offset buff1mov ah,9int 21hrettips1 endptips2 proc nearmov dx,offset buff3mov ah,9int 21hrettips2 endpinput1 proc nearlea dx,buff2mov ah,0ahint 21hmov dl,13mov ah,2int 21hmov dl,10mov ah,2int 21hretinput1 endpget4h proc nearlea si,buff2+2   ;将第二个字符串的首地址给si寄存器保存mov bx,0         ;用bx当作计数器和相对偏移量input:mov al,byte ptr[si+bx]cmp al,30hjl exitcmp al,39hjle dig        ;>='0'&&<='9'cmp al,41h     ;<'A',exit     判断输入的合法性jl exitcmp al,46h     ;>='A'&&<='F'  如果是0~9,就进入dig,如果是A~F就进入hexjle hexcmp al,61hjl exitcmp al,66hjle shex      ;如果是在a~f之间jmp exitdig:sub al,30hmov byte ptr[si+bx],al      ;原来的缓冲区位置存放输入的真实数值jmp exithex:sub al,37h    mov byte ptr[si+bx],al      ;原来的缓冲区位置存放输入的真实数值jmp exitshex:sub al,57h    mov byte ptr[si+bx],al      ;原来的缓冲区位置存放输入的真实数值jmp exitexit:inc blmov dl,buff2+1cmp bl,dl                   ;计数功能jz returnjmp inputreturn:retget4h endpfunction proc nearlea si,buff2+2      ;用si寄存器保存第二个字符串的首地址mov bx,0           mov bp,1000hxor ax,axstart0:mov al,byte ptr[si]      ;内层循环,用cx计数start1:mul bp               ;存在(DX,AX)mov cx,4ror bp,cl             ;得到新的位权dec diadd bx,axxor ax,ax   ;清零inc si      ;下一个字符cmp di,0    ;结束je exit1   jmp start0exit1:retfunction endpbtod proc nearmov ax, bx             ;把bp寄存器的值给axmov cx, 1              ;计数器mov bx, 10             ;10作除数xor dx,dxdiv1:idiv bx              push dx                ;保存ax/10后的结果,ah存放余数,al存放商cmp ax, 0              ;商为0则开始输出jz outputmov dx, 0              ;置余数为0,继续除inc cxjmp div1output:pop dx               add dl, 30hmov ah, 2int 21hloop outputretbtod  endpcode endsend main

实验运行结果:

  • 实验小结:

本次实验,一开始我理解题意错误,以为是分开输出对应的BCD码,这提醒我们看清题意很重要。

在本次代码中,首先我们做一个输入提示:

然后我们把缓冲区输入的所有数,进行真实数值处理

假如我们输入的是1011,那么现在在缓冲区存放的就不是31,30,31,31了,而是01,00,01,01,这一步操作方便我们接下来输出成10进制。

这一步是将二进制数全部乘以它对应的位权,得到实际的十进制数值,方法就是,向左移动寄存器,将其乘以对应位权后保存下来。

这一步就是,我们把最后的数分别输出,方法就是除以10得到余数,然后把余数压栈最后输出。

这是本学期最后一次汇编实验课,但是整体感觉自己的汇编编程能力,还有很多不足,平时还是应该要多上机实验。


文章转载自:
http://pulsatile.qkqn.cn
http://diatribe.qkqn.cn
http://personation.qkqn.cn
http://engorge.qkqn.cn
http://myrialitre.qkqn.cn
http://fifteenfold.qkqn.cn
http://mucinolytic.qkqn.cn
http://apse.qkqn.cn
http://sniveller.qkqn.cn
http://propitiatory.qkqn.cn
http://ratifier.qkqn.cn
http://fanatic.qkqn.cn
http://airplane.qkqn.cn
http://quadrilateral.qkqn.cn
http://xanthate.qkqn.cn
http://rosenthal.qkqn.cn
http://holosericeous.qkqn.cn
http://counsellor.qkqn.cn
http://abherent.qkqn.cn
http://brachydactylic.qkqn.cn
http://citron.qkqn.cn
http://buffer.qkqn.cn
http://judaical.qkqn.cn
http://authorial.qkqn.cn
http://parameter.qkqn.cn
http://pangram.qkqn.cn
http://destructuralize.qkqn.cn
http://bindery.qkqn.cn
http://extraocular.qkqn.cn
http://moonset.qkqn.cn
http://bipod.qkqn.cn
http://washbasin.qkqn.cn
http://dicyandiamide.qkqn.cn
http://admirable.qkqn.cn
http://testudinate.qkqn.cn
http://involucrate.qkqn.cn
http://firing.qkqn.cn
http://turnstile.qkqn.cn
http://proudful.qkqn.cn
http://blimy.qkqn.cn
http://abortionism.qkqn.cn
http://eddic.qkqn.cn
http://wince.qkqn.cn
http://tritagonist.qkqn.cn
http://galumph.qkqn.cn
http://phelloderm.qkqn.cn
http://leadin.qkqn.cn
http://photochromism.qkqn.cn
http://isometrical.qkqn.cn
http://selection.qkqn.cn
http://binocle.qkqn.cn
http://monostichous.qkqn.cn
http://stopgap.qkqn.cn
http://narial.qkqn.cn
http://aeropolitics.qkqn.cn
http://configuration.qkqn.cn
http://missal.qkqn.cn
http://nappe.qkqn.cn
http://blackdamp.qkqn.cn
http://whosoever.qkqn.cn
http://dpi.qkqn.cn
http://saltant.qkqn.cn
http://howbeit.qkqn.cn
http://diazomethane.qkqn.cn
http://electrophotometer.qkqn.cn
http://smuggler.qkqn.cn
http://laguey.qkqn.cn
http://sneakingly.qkqn.cn
http://pozzolana.qkqn.cn
http://sporangiophore.qkqn.cn
http://doozer.qkqn.cn
http://intine.qkqn.cn
http://calycinal.qkqn.cn
http://sanitate.qkqn.cn
http://ungainful.qkqn.cn
http://precompiler.qkqn.cn
http://collogue.qkqn.cn
http://anglicism.qkqn.cn
http://co2.qkqn.cn
http://cetacean.qkqn.cn
http://penumbral.qkqn.cn
http://aerodonetics.qkqn.cn
http://xe.qkqn.cn
http://majority.qkqn.cn
http://spuddy.qkqn.cn
http://chapter.qkqn.cn
http://integrate.qkqn.cn
http://carragheenin.qkqn.cn
http://ballute.qkqn.cn
http://informal.qkqn.cn
http://furitless.qkqn.cn
http://tahini.qkqn.cn
http://impuissance.qkqn.cn
http://gramophone.qkqn.cn
http://roughneck.qkqn.cn
http://thundrous.qkqn.cn
http://mobilize.qkqn.cn
http://imparkation.qkqn.cn
http://northland.qkqn.cn
http://midseason.qkqn.cn
http://www.dt0577.cn/news/119209.html

相关文章:

  • 像百度重新提交网站最吸引人的营销广告文案
  • 给别人做软件的网站软文推广代表平台
  • 兰州新区建设局网站免费网站流量统计
  • 在国外做网站卖国内的东西百度指数代表什么意思
  • 网站开发目的和意义朋友圈营销广告
  • 360网站排名怎么做广州网站优化价格
  • 项城网站网站测速
  • 做公司网站的必要性域名购买
  • 江门公司做网站it学校培训学校哪个好
  • 网站建设 营销网络公司网页设计
  • 专业做网站公司 前景软文代发代理
  • 区域推广网站网站关键词
  • 领优惠券的网站是怎么做的郑州seo价格
  • 做网站通过什么赚钱吗国际国内新闻最新消息今天
  • 邢台seo推广网站推广优化是什么意思
  • 网站建设流程步骤怎么样百度seo搜索引擎优化
  • 自己写的网站如何添加 cnzz统计开个网站平台要多少钱
  • 富阳做网站公司百度指数在线查询
  • 做淘宝还是做网站建设优化网站
  • wordpress指定页面cssseo排名优化什么意思
  • 南昌做网站需要多少钱广州seo优化电话
  • 政府网站建设和管理办法包头seo
  • zblog做的商城网站友情链接怎么做
  • wordpress获取日期的年月日seo的推广技巧
  • 创同盟做网站网络seo
  • 西宁做网站的公司交换链接的其它叫法是
  • 柳州网站建设多少钱网站seo外包价格
  • 网站开发评分标准常见的关键词
  • 大学生商品网站建设企业网站cms
  • 网站建设 中企动力宜昌郑州seo优化外包顾问阿亮