         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				NO_APP
		.Ltext0:
				.align	2
		DOHANOI.5990:
		.LFB186:
		.LVL21:
		 		link.w %fp,#-1024
		 		movem.l #12320,-(%sp)
    2   %routine do hanoi(%integer n, f, t, u)
		.LVL0:
		 		link.w %fp,#-3072
		 		movem.l #15408,-(%sp)
		 		move.l 8(%fp),%a3
		 		move.l 12(%fp),%d5
		 		move.l 16(%fp),%d4
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL22:
		 		pea 3.w
		 		pea 2.w
		 		pea 1.w
		 		pea 4.w
		 		jsr DOHANOI.5990
		.LVL23:
		.LBB47:
		.LBB48:
    3     do hanoi(n - 1, f, u, t) %if n >= 2
		 		moveq #1,%d0
		 		cmp.l %a3,%d0
		 		jlt .L4
		.L2:
		.LVL1:
		.LBB34:
		.LBB35:
		.LBB36:
		.LBB37:
		.LBB38:
		.LBB39:
		 		clr.l -(%sp)
		 		move.l %d4,-(%sp)
		 		lea (-256,%fp),%a1
		 		lea _imp_itos,%a2
		 		jsr (%a2)
		.LVL2:
		.LBE39:
		.LBE38:
		.LBE37:
		.LBB40:
		.LBB41:
		.LBB42:
		.LBB43:
		.LBB44:
		 		clr.l -(%sp)
		 		move.l %d5,-(%sp)
		 		lea (-512,%fp),%a1
		 		jsr (%a2)
		.LVL3:
		.LBE44:
		.LBE43:
		.LBE42:
    4     print string("Move disk from ".itos(f,0)." to ".itos(t,0).to string(nl))
		 		move.l %d4,-(%sp)
		 		move.l 20(%fp),-(%sp)
		 		move.l %d5,-(%sp)
		 		pea -1(%a3)
		 		jsr DOHANOI.5990
		.LVL19:
		 		lea (16,%sp),%sp
		 		jra .L2
		.L5:
    5     do hanoi(n - 1, u, t, f) %if n >= 2
		 		lea (284,%sp),%sp
		 		moveq #1,%d0
		 		cmp.l %a3,%d0
		 		jlt .L5
		.L3:
		.L1:
    6   %end
		 		pea -1792(%fp)
		 		pea -2048(%fp)
		 		move.l %fp,%d2
		.LVL4:
		 		add.l #-2304,%d2
		.LVL5:
		 		move.l %d2,%a1
		 		lea _imp_join,%a2
		 		jsr (%a2)
		.LVL6:
		.LBE41:
		 		pea -1536(%fp)
		 		move.l %d2,-(%sp)
		 		add.l #-256,%d2
		.LVL7:
		 		move.l %d2,%a1
		 		jsr (%a2)
		.LVL8:
		.LBE40:
		 		lea (32,%sp),%sp
		 		pea -1280(%fp)
		 		move.l %d2,-(%sp)
		 		add.l #-256,%d2
		.LVL9:
		 		move.l %d2,%a1
		 		jsr (%a2)
		.LVL10:
		.LBE36:
		 		pea -1024(%fp)
		 		move.l %d2,-(%sp)
		 		add.l #2048,%d2
		.LVL11:
		 		move.l %d2,%a1
		 		jsr (%a2)
		.LVL12:
		 		move.l #256,%d3
		 		move.l %d3,-(%sp)
		 		pea -3072(%fp)
		 		move.l %d2,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL13:
		.LBE35:
		.LBE34:
		.LBB45:
		.LBB46:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL14:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL15:
		.LBE46:
		.LBE45:
		 		move.l %d5,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l 20(%fp),-(%sp)
		 		pea -1(%a3)
		 		jsr DOHANOI.5990
		.LVL20:
		 		lea (16,%sp),%sp
		 		jra .L1
		.LFE186:
				.align	2
				.globl	main
		main:
		.LFB185:
    7   do hanoi(4, 1, 2, 3)
		 		movem.l -3096(%fp),#3132
		.LVL16:
		 		unlk %fp
		.LVL17:
		 		rts
		.LVL18:
		.L4:
    8   print string("Towers of Hanoi puzzle completed!".to string(nl))
    9 %end %of %program
    9 Statements compiled
		 		pea -512(%fp)
		 		pea -768(%fp)
		 		move.l %fp,%d2
		.LVL24:
		 		add.l #-256,%d2
		.LVL25:
		 		move.l %d2,%a1
		 		jsr _imp_join
		.LVL26:
		 		move.l #256,%d3
		 		lea (32,%sp),%sp
		 		move.l %d3,-(%sp)
		 		pea -1024(%fp)
		 		move.l %d2,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL27:
		.LBE48:
		.LBE47:
		.LBB49:
		.LBB50:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL28:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL29:
		.LBE50:
		.LBE49:
		.LBB51:
		.LBB52:
		 		lea (268,%sp),%sp
		 		clr.l -(%sp)
		 		jsr exit
		.LVL30:
		.LBE52:
		.LBE51:
		.LFE185:
		.Letext0:
