那位大哥帮忙做一下!!!!!
以前做过一个2的11次方的,你试着去改改,加上输入输出语句.
dseg segment
array dw 1,2,4,8,16,32,64,128,256
dw 512,1024,2048,4096,8192,16384
x db 11
pwr dw ?
dseg ends
cseg segment
assume ds:dseg,cs:cseg
start:
mov ax,dseg
mov ds,ax
mov si,offset array
mov bh,0
mov bl,x
shl bx,1
mov ax,array[bx]
mov pwr,ax
mov ah,4ch
int 21h
cseg ends
end start