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