21,497
社区成员




.8086
.model tiny
.code
org 0100h
start:
push cs
pop ds
lea dx,tree
mov ah,9
int 21h
int 20h
tree:
db ' * ', 13, 10
db ' *** ', 13, 10
db ' ***** ', 13, 10
db ' ******* ', 13, 10
db '*********', 13, 10
db ' *** ', 13, 10
db ' *** ', 13, 10
db ' *** ', 13, 10
db ' *** ', 13, 10, 36
end start
.8086
.model tiny
.code
org 0100h
start:
push cs
pop ds
lea si,jff
xor di,di
mov ax,5
raw: mov bx,[si]
mov cx,16
push ax
rab: mov dl,32
test bx,1
jz cok
add dl,10
cok: mov ah,2
int 21h
inc di
cmp di,8
jna sab
mov al,2
mov dl,10
int 21h
xor di,di
sab: shr bx,1
loop rab
add si,2
pop ax
dec ax
jnz raw
mov ah,4ch
int 21h
jff: adc [bx+si-10h],dh
db 0f1h
neg word ptr [bx]
pop es
push cs
sbb al,38h
add [bx+si],al
ret
end start