Compilation Christmas Tree

Source: Internet
Author: User

Compilation version of Christmas tree

Attach First:

The assembly code is as follows:

1 dseg Segment2X_label DW?;number of spaces per layer3Y_label DW?;height per layer4Axis equ -5 dseg ends6 cseg Segment7AssumeCS:CSEG,ds:dseg8 Start:       9       movAh,0               ;Setting the graphics display Mode 4Ten       moval, 04h One       int10h A        -       movAL,Geneva              ;Color -            the       movDx -              ;y -       movY_label, - -       movX_label, - - Floor : +       CMPY_label,0 -       JEExit +       movX_label, - A       SubY_label,Ten at       AddAL,1               ;change color per layer -       IncDX - column: -       movCX, X_label;x -       IncDX -       movBX, Axis;Christmas Tree Axis in       SubBX, X_label -       AddBX, BX;width of each layer of the Christmas tree to       AddBX, CX + row:         -       movAh, 0ch;0c Chant function the       int10h *       IncCX $       CMPCX, BXPanax Notoginseng       JbeRow -        the       PushBX +       movBX, Y_label A       DecX_label the       CMPX_label, BX +       Jgecolumn -       JB Floor $       $ exit: -       movAL, to -       movCX, Axis;Roots the       movBx -       - Next:Wuyi       IncDX the       movAh, 0ch;0c Chant function -       int10h Wu       DecBX -       jnzNext About        $       movAx, 4c00h -       int21h -  - cseg ends AEnd Start

Compilation Christmas Tree

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.