xlat指令...

來源:互聯網
上載者:User

標籤:style   class   blog   code   tar   color   

 1 ;就是一個串str1, lea ebx, str1 然後我們ebx+1總是加上的是一個位元組, 無論(串是word, byte, dword) 2 .386 3 .model flat 4 .stack 4096 5 include io.h 6 ExitProcess proto near32 stdcall, deExitCode:dword 7 cr equ 0dh 8 lf equ 0ah 9 .data10 str1 byte 20 dup(?)11 stringss byte "請輸入一個數字並求其平方:",  cr, lf 12 table dword 0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 10013 .code14 _start:15 output stringss16 input str1, 2017 atod str118 lea ebx, table19 add eax, eax;如果是dword的串,那麼我們讀取的第n個資料的值,那麼首地址加上的值(到達該值中間的位元組數)就是n*sizeof(dword)=n*420 add eax, eax;21 xlat22 ;add eax, eax;模仿一下xlat的功能23 ;mov ax, word ptr [ebx+eax]24 dtoa str1, eax25 output str126 invoke ExitProcess, 027 public _start28 end

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.