Compile to convert hexadecimal to decimal

Source: Internet
Author: User
Dseg segmentsljz dB 04 H, 89 h, 32 h, 15 h, 0cdh, 0adh, 0a8h, 0c7h, 98 h, 10 h, 13hn equ $ - Sljzsjzs DB  100 DUP (? ) Dseg endssseg segment stack DB  512 DUP ( 0  ) Sseg endscseg segment assume Cs: cseg, SS: sseg, DS: dsegbegin: mov ax, dseg mov ds, ax Lea dx, sljz mov CX, N mov Si,  0  MoV Di,  0  Axx: Call subp loop axx mov sjzs [di], '  $  '  Lea dx, sjzs mov ah, 09 h int 21 h mov ah, 4ch int 21 hsubp proc push CX mov ah, sljz [Si] mov BL,  0  Ezz: Inc BL sub ah,  100  JNS Ezz dec BL add BL, 30 h mov sjzs [di], BL add ah,  100  MoV BL,  0  Azz: Inc BL sub ah,  10 JNS Azz dec BL add BL, 30 h Inc di mov sjzs [di], BL add ah,  10  MoV BL,  0  Bzz: Inc BL sub ah,  1  JNS bzz dec BL add BL, 30 h Inc di mov sjzs [di], BL Inc di mov sjzs [di], 20 h Inc Si Inc di pop CX retsubp endp cseg ends end begin 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.