Assembly Language Experiment 12

Source: Internet
Author: User

1AssumeCS:Code2 3 Code Segment4 Start:5         movAx,code6         movDs,ax7         movSi,offset do08         movAx09         movEs,axTen         movdi,200h One         movcx,offset do0end-offset do0 A         CLD -         Rep MOVSB -  the         movAx0 -         movDs,ax -         movWord ptrds:[0],200h -         movWord ptrds:[2],0 +  -         movax,4c00h +         int21h A  at    Do0: -         jmpShort Do0start -    Do0str: -Dw1 -Db'Divide error!' -    Do0start: in         movAx,cs -         movDs,ax to         movsi,202h +  -         movax,0b800h the         movEs,ax *         movdi,7c8h $         movCx -Panax Notoginseng     ;mov cx,ds:[202h] -    S: the         movAlds:[si+2] +         mov es:[Di],al A         Incsi the         AddDi2 + Loop S -  $         movax,4c00h $         int21h -  -         movAxds:[202h] the         IncAx -         mov ds:[202h],axWuyi  the         PushCX -         movCx5 Wu      DS0: -         PushCX About         movCX,0FFFFH $      DS1: - Loop DS1 -         PopCX - Loop Ds0 A         PopCX +  the         Iret -  $    Do0end: the         NOP the  the code ends theEnd Start
shiyan12.asm
1AssumeCS:Code2 3 Code Segment4 Start:5         movAx06         movBx07         DivBX8 9         movax,4c00hTen         int21h One  A code ends -End Start
12fushu.asm

Assembly Language Experiment 12

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.