色婷婷AⅤ一区二区三区|亚洲精品第一国产综合亚AV|久久精品官方网视频|日本28视频香蕉

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(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 來(lái)源:網(wǎng)絡(luò) 收藏
          這個(gè)是一個(gè)把兩位十進(jìn)制數(shù)轉(zhuǎn)化為十六進(jìn)制數(shù)的的匯編語(yǔ)言程序 考試題目



          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 ;換行回車(chē)
          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 ;換行回車(chē)
          mov ah,09h
          int 21h
          lea dx,tital2 ;輸出抬頭2
          mov ah,09h
          int 21h


          上一頁(yè) 1 2 下一頁(yè)

          評(píng)論


          技術(shù)專(zhuān)區(qū)

          關(guān)閉