#
#	fib(n)=if(n==0) or (n==1) n else fib(n-1)+fib(n-2)
#
n:	const  6
fn:	mem 1
	load n r1
	jsr fib
	store r2 fn
	halt
# r1=n,r2=fib(n),r3=auxiliar
fib:	jzero r1 fim
	storer r1 r3
	dec r3
	jzero r3 fim
	storer r3 r1
	push r1
	jsr fib
	pop r1
	dec r1
	push r2
	jsr  fib
	pop r1
	add r1 r2
	rtn
fim: 	storer r1 r2	
	rtn



















