<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 匯編:將兩位十進(jìn)制數(shù)轉(zhuǎn)化為十六進(jìn)制數(shù)

          匯編:將兩位十進(jìn)制數(shù)轉(zhuǎn)化為十六進(jìn)制數(shù)

          作者: 時(shí)間:2016-12-01 來源:網(wǎng)絡(luò) 收藏
          這個(gè)是一個(gè)把兩位十進(jìn)制數(shù)轉(zhuǎn)化為十六進(jìn)制數(shù)的的匯編語言程序 考試題目



          data segment
          tital1 db Please input shi jin zi shu (example 13): ,$
          tital2 db it is transpranted into shi liu jin zi shu :,$
          tital3 db Do you want to have a try again (yes "y",no "n"): ,$
          tital4 db welcome to use this program It is made by WQ 2012/5/17,$
          kongzi db 0dh,0ah,$

          data ends
          code segment
          assume cs:code,ds:data
          start:
          mov ax,data
          mov ds,ax

          retry:
          lea dx,kongzi ;換行回車
          mov ah,09h
          int 21h
          lea dx,tital1 ;輸出抬頭1
          mov ah,09h
          int 21h

          mov al,0 ;初始化al

          mov ah,01h ;輸入并回顯
          int 21h

          mov bh,al ;放在bx中保存

          mov ah,01h
          int 21h
          mov bl,al

          lea dx,kongzi ;換行回車
          mov ah,09h
          int 21h
          lea dx,tital2 ;輸出抬頭2
          mov ah,09h
          int 21h


          上一頁 1 2 下一頁

          評(píng)論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();