Friday, 4 November 2011

generate the sequence 1,13,135,1357,..............


mov cl,[2000h]
mov si,3000h
mov al,01h
l1:inc al
mov bl,00h
l2:inc bl
mov [si],bl
inc bl
inc si
cmp al,bl
jnz l2
inc al
loop l1
hlt

No comments:

Post a Comment