<p>&lt;!-- RANDOM CODE SNIPPET&nbsp;--&gt;</p><p>/* Language:: x86 Assembly */</p><p>title&nbsp; IniCode.co<br />infinite&nbsp;&nbsp; &nbsp; EQU&nbsp;1<br />spins&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;EQU 1<br />spinner&nbsp;&nbsp; &nbsp;&nbsp; EQU C<br />spinback&nbsp;&nbsp; &nbsp; EQU 02200h<br />background&nbsp;&nbsp; EQU 0f000h<br />outerloops&nbsp;&nbsp; EQU 400<br />innerloops&nbsp;&nbsp; EQU 100<br />dosseg<br />.model small<br />.stack 100h<br />.data<br />.code<br />main&nbsp; proc<br />&nbsp;&nbsp;&nbsp;&nbsp;mov ax, 0b800h<br />&nbsp;&nbsp;&nbsp;&nbsp;mov ds,ax<br />&nbsp;&nbsp; &nbsp;mov bx,0<br />&nbsp;&nbsp; &nbsp;mov si,0<br />&nbsp;&nbsp; &nbsp;mov&nbsp;ah,2<br />&nbsp;&nbsp; &nbsp;mov&nbsp;bh,0<br />&nbsp;&nbsp; &nbsp;mov&nbsp;dh,0<br />&nbsp;&nbsp; &nbsp;mov&nbsp;dl,0<br />&nbsp;&nbsp; &nbsp;int&nbsp;10h<br />&nbsp;&nbsp; &nbsp;mov&nbsp;ah,9<br />&nbsp;&nbsp; &nbsp;mov&nbsp;al,0f0h<br />&nbsp;&nbsp; &nbsp;mov&nbsp;bh,0<br />&nbsp;&nbsp; &nbsp;mov&nbsp;bl,000h<br />&nbsp;&nbsp; &nbsp;mov&nbsp;cx,25*80<br />&nbsp;&nbsp; &nbsp;int&nbsp;10h<br />&nbsp;&nbsp;&nbsp;&nbsp;mov cx, spins<br />top:<br />&nbsp;&nbsp; &nbsp;push cx<br />&nbsp;&nbsp; &nbsp;mov cx, 40<br />&nbsp;&nbsp; &nbsp;mov di, 80<br />&nbsp;&nbsp; &nbsp;push di<br />&nbsp;&nbsp; &nbsp;mov di, 0<br />topright:<br />&nbsp;&nbsp; &nbsp;pop bx<br />&nbsp;&nbsp; &nbsp;mov ax, spinback<br />&nbsp;&nbsp; &nbsp;mov [bx], ax<br />&nbsp;&nbsp; &nbsp;call sqrttr<br />&nbsp;&nbsp; &nbsp;jmp trskiptocode<br />TRGETMULYFORX:<br />mov dx,00FEh<br />mov ax,spinback<br />&nbsp;&nbsp; &nbsp;mov [bx],ax<br />cmp sp,dx<br />je IniCode<br />TRSKIPTOCODE:<br />&nbsp;&nbsp; &nbsp;pop ax<br />&nbsp;&nbsp; &nbsp;mov si, 160<br />&nbsp;&nbsp; &nbsp;mul si<br />&nbsp;&nbsp; &nbsp;mov si, ax<br />&nbsp;&nbsp; &nbsp;mov ax, di<br />&nbsp;&nbsp; &nbsp;mov dx,2<br />&nbsp;&nbsp; &nbsp;mul dx<br />&nbsp;&nbsp; &nbsp;add ax,80<br />&nbsp;&nbsp; &nbsp;add si, ax<br />&nbsp;&nbsp; &nbsp;mov bx, si<br />&nbsp;&nbsp; &nbsp;push cx<br />&nbsp;&nbsp; &nbsp;mov cx,outerloops<br />&nbsp;&nbsp; &nbsp;tryittt:<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; push cx<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; mov cx, outerloops<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; tryitt:<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; push cx<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mov cx, innerloops<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tryit:<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mov ax, spinner<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mov [bx], ax<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; loop tryit<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pop cx<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; loop tryitt<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pop cx<br />&nbsp;&nbsp; &nbsp;loop tryittt<br />&nbsp;&nbsp; &nbsp;pop cx<br />&nbsp;&nbsp; &nbsp;cmp cx,1<br />&nbsp;&nbsp; &nbsp;je TRGETMULYFORX