         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				NO_APP
		.Ltext0:
				.section	.rodata
		.LC2:
		 		.byte	4
		 		.string	"p2: "
		 		.zero	250
				.align	2
		P2.5996:
		.LFB187:
		.LVL30:
		 		link.w %fp,#-1028
		 		movem.l #16176,-(%sp)
    2   %string(255) s
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL31:
		 		addq.l #8,%sp
    3   %integer n
    4
    5   %routine p1 (%string(*)%name k)
		.LVL15:
		 		link.w %fp,#-1024
		 		movem.l #12336,-(%sp)
		.LBB30:
    6     print string("p1: ")
		 		move.l %fp,%d3
		.LVL16:
		 		add.l #-256,%d3
		.LVL17:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC3
		 		move.l %d3,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL18:
		 		lea (-1024,%fp),%a3
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %a3,-(%sp)
		 		jsr (%a2)
		.LVL19:
		 		move.l %d2,-(%sp)
		 		move.l %a3,-(%sp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL20:
		.LBE30:
		.LBB31:
		.LBB32:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL21:
		 		lea (12,%sp),%sp
		 		lea _imp_printstring,%a3
		 		jsr (%a3)
		.LVL22:
		 		add.l #-256,%d3
		.LVL23:
		 		add.l %d2,%sp
		 		move.l %d2,-(%sp)
		 		pea -768(%fp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL24:
		.LBE32:
		.LBE31:
		.LBB33:
		.LBB34:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL25:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL26:
		.LBE34:
		.LBE33:
		.LBB35:
		.LBB36:
		 		lea (268,%sp),%sp
		 		jsr _imp_newline
		.LVL27:
		.LBE36:
		.LBE35:
    7     print string(k)
    8     newline
    9   %end
   10
		 		movem.l -1040(%fp),#3084
		.LVL28:
		 		unlk %fp
		.LVL29:
		 		rts
		.LFE186:
				.section	.rodata
		.LC1:
		 		.byte	9
		 		.string	"test done"
		 		.zero	245
				.align	2
				.globl	main
		main:
		.LFB185:
   11   %routine p2 (%string(*)%name k)
		.LVL0:
		 		link.w %fp,#-1024
		 		movem.l #12336,-(%sp)
		.LBB23:
   12     print string("p2: ")
		 		move.l %fp,%d3
		.LVL1:
		 		add.l #-256,%d3
		.LVL2:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC2
		 		move.l %d3,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL3:
		 		lea (-1024,%fp),%a3
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %a3,-(%sp)
		 		jsr (%a2)
		.LVL4:
		 		move.l %d2,-(%sp)
		 		move.l %a3,-(%sp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL5:
		.LBE23:
		.LBB24:
		.LBB25:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL6:
		 		lea (12,%sp),%sp
		 		lea _imp_printstring,%a3
		 		jsr (%a3)
		.LVL7:
		 		add.l #-256,%d3
		.LVL8:
		 		add.l %d2,%sp
		 		move.l %d2,-(%sp)
		 		pea -768(%fp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL9:
		.LBE25:
		.LBE24:
		.LBB26:
		.LBB27:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL10:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL11:
		.LBE27:
		.LBE26:
		.LBB28:
		.LBB29:
		 		lea (268,%sp),%sp
		 		jsr _imp_newline
		.LVL12:
		.LBE29:
		.LBE28:
   13     print string(k)
   14     newline
   15   %end
   16
		 		movem.l -1040(%fp),#3084
		.LVL13:
		 		unlk %fp
		.LVL14:
		 		rts
		.LFE187:
				.section	.rodata
		.LC3:
		 		.byte	4
		 		.string	"p1: "
		 		.zero	250
				.align	2
		P1.5989:
		.LFB186:
   17   %routine pass (%routine p (%string(*)%name k), %string(*)%name k)
   18     p(k)
		 		move.l %d6,-(%sp)
		 		jsr P1.5989
		.LVL43:
		 		addq.l #4,%sp
		.LVL44:
		.L6:
		.LBE48:
		.LBE47:
		.LBB49:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC1
		 		move.l %d5,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL45:
		 		move.l %d2,-(%sp)
		 		move.l %d5,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL46:
		 		move.l %d2,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL47:
		.LBE49:
		.LBB50:
		.LBB51:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL48:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL49:
		.LBE51:
		.LBE50:
		.LBB52:
		.LBB53:
		 		add.l %d2,%sp
		 		jsr _imp_newline
		.LVL50:
		.L4:
		.LBE53:
		.LBE52:
		 		move.l %d6,-(%sp)
		 		jsr P2.5996
		.LVL54:
		 		addq.l #4,%sp
		 		jra .L6
		.LBE55:
		.LBE54:
		.LFE185:
		.Letext0:
   19   %end
   20
   21   %cycle
   22     read(n)
		 		move.l %fp,%d7
		.LVL32:
		 		add.l #-260,%d7
		.LVL33:
		 		lea _imp_readint,%a3
		 		move.l %d7,-(%sp)
		 		jsr (%a3)
		.LVL51:
   23     read(s)
		 		move.l %fp,%d6
		.LVL34:
		 		add.l #-256,%d6
		.LVL35:
		.LBB46:
		 		move.l %d6,-(%sp)
		 		jsr _imp_readitem
		.LVL52:
   24     %if n = 1 %start
		 		addq.l #8,%sp
		 		moveq #1,%d0
		 		cmp.l -260(%fp),%d0
		 		jeq .L7
		.L5:
		.LVL53:
		.LBB54:
		.LBB55:
   25       pass(p1,s)
   26     %else
   27       pass(p2,s)
   28     %finish
   29     print string("test done")
		 		move.l %fp,%d5
		.LVL36:
		 		add.l #-1028,%d5
		.LVL37:
		 		move.l %fp,%d4
		.LVL38:
		 		add.l #-772,%d4
		.LVL39:
		 		move.l %fp,%d3
		.LVL40:
		 		add.l #-516,%d3
		.LVL41:
		 		jra .L4
		.L7:
		.LVL42:
		.LBE46:
		.LBB47:
		.LBB48:
   30     newline
   31   %repeat
   32
   33 %end
   34 %end %of %file
   29 Statements compiled
