MASM --- chapter7 binary multiplication

  1. Include Irvine32.inc
  2. .data
  3. .code
  4. main proc
  5. mov eax, 123
  6. mov ebx, eax
  7. shl eax, 5              ;  multiply by 2^5
  8. shl ebx, 2              ;  multiply by 2^2
  9. add eax, ebx
  10. call writedec
  11. call crlf
  12. exit
  13. main endp
  14. end main

eax * 36 = eax * ( 32 + 4 )

留言

這個網誌中的熱門文章

Codeforces --- string task

Uva 674 ---- coin change

codeforces 271A --- beautiful year