         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				NO_APP
		.Ltext0:
				.section	.rodata
		.LC0:
		 		.byte	3
		 		.string	"d2("
		 		.zero	251
		.LC1:
		 		.byte	2
		 		.string	", "
		 		.zero	252
		.LC2:
		 		.byte	4
		 		.string	") = "
		 		.zero	250
		.LC3:
		 		.byte	3
		 		.string	",  "
		 		.zero	251
				.align	2
				.globl	main
		main:
		.LFB185:
		.LVL0:
		 		link.w %fp,#-4388
		 		movem.l #16188,-(%sp)
    2   ! It would appear that Imp and C do not store their arrays in the same x-major order.
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL1:
    3   %integerarray d2(0:1, 0:2)
    4   %ownintegerarray d1(0:5) = 0,1,2,3,4,5
    5   %integername d, e
    6   %integer i,j
    7   d == d2(0,0);            e == d1(0);              d = e;
    8   d == INTEGER(addr(d)+4); e == INTEGER(ADDR(e)+4); d = e
    9   d == INTEGER(addr(d)+4); e == INTEGER(ADDR(e)+4); d = e
		 		move.l D1.5987,-24(%fp)
		.LVL2:
   10   d == INTEGER(addr(d)+4); e == INTEGER(ADDR(e)+4); d = e
		 		move.l D1.5987+4,-20(%fp)
   11   d == INTEGER(addr(d)+4); e == INTEGER(ADDR(e)+4); d = e
		 		move.l D1.5987+8,-16(%fp)
   12   d == INTEGER(addr(d)+4); e == INTEGER(ADDR(e)+4); d = e
		 		move.l D1.5987+12,-12(%fp)
   13   %for i = 0, 1, 1 %cycle
		 		move.l D1.5987+16,-8(%fp)
   14     %for j = 0, 1, 2 %cycle
		 		move.l D1.5987+20,-4(%fp)
		.LVL3:
		 		lea (-24,%fp),%a0
		 		move.l %a0,-4384(%fp)
		 		addq.l #8,%sp
		 		move.l %a0,-4388(%fp)
		 		moveq #-1,%d0
		 		move.l %d0,-4380(%fp)
		.LBB76:
   15       printstring("d2(");write(i,0);printstring(", ");write(j,0);printstring(") = "); write(d2(i,j),0);printstring(",  ");
		 		move.l %fp,%d3
		.LVL4:
		 		add.l #-280,%d3
		.LVL5:
		 		move.l %fp,%d7
		.LVL6:
		 		add.l #-4376,%d7
		.LVL7:
		 		move.l %fp,%d6
		.LVL8:
		 		add.l #-1304,%d6
		.LVL9:
		.L4:
		.LBE76:
		 		moveq #-1,%d4
		.LVL11:
		.L2:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC0
		 		move.l %d3,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL13:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d7,-(%sp)
		 		jsr (%a2)
		.LVL14:
		 		move.l %d2,-(%sp)
		 		move.l %d7,-(%sp)
		 		move.l %d6,-(%sp)
		 		jsr (%a2)
		.LVL15:
		.LBE77:
		.LBB78:
		.LBB79:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d6,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL16:
		 		lea (12,%sp),%sp
		 		lea _imp_printstring,%a3
		 		jsr (%a3)
		.LVL17:
		.LBE79:
		.LBE78:
   16     %repeat
		 		add.l %d2,%sp
		 		clr.l -(%sp)
		 		move.l -4380(%fp),-(%sp)
		 		lea _imp_writeint,%a4
		 		jsr (%a4)
		.LVL18:
		.LBB80:
		 		moveq #1,%d0
		 		cmp.l -4380(%fp),%d0
		 		jne .L4
		.L5:
		.LBB91:
		.LBB92:
		 		jsr _imp_newline
		.LVL40:
		.LBE92:
		.LBE91:
		 		moveq #-1,%d0
		 		move.l %d0,-4380(%fp)
		.LBB93:
   17     newline
		 		addq.l #1,-4380(%fp)
		.LVL10:
		 		move.l -4388(%fp),%a5
		 		move.l %d2,-(%sp)
		 		pea .LC1
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL19:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		pea -4120(%fp)
		 		jsr (%a2)
		.LVL20:
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		pea -4120(%fp)
		 		pea -1560(%fp)
		 		jsr (%a2)
		.LVL21:
		.LBE80:
		.LBB81:
		.LBB82:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		pea -1560(%fp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL22:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL23:
		.LBE82:
		.LBE81:
		 		lea (268,%sp),%sp
		 		clr.l -(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a4)
		.LVL24:
		.LBB83:
		 		lea (268,%sp),%sp
		 		moveq #2,%d0
		 		cmp.l %d4,%d0
		 		jne .L2
		.L3:
		.LBB89:
		.LBB90:
		 		jsr _imp_newline
		.LVL39:
		.LDL2:
		 		moveq #12,%d0
		 		add.l %d0,-4388(%fp)
		.LBE90:
		.LBE89:
   18   %repeat
		 		addq.l #1,%d4
		.LVL12:
		.LBB77:
   19   newline
		 		move.l %d2,-(%sp)
		 		pea .LC2
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL25:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		pea -3864(%fp)
		 		jsr (%a2)
		.LVL26:
		 		move.l %fp,%d5
		.LVL27:
		 		add.l #-1816,%d5
		.LVL28:
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		pea -3864(%fp)
		 		move.l %d5,-(%sp)
		 		jsr (%a2)
		.LVL29:
		.LBE83:
		.LBB84:
		.LBB85:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d5,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL30:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL31:
		.LBE85:
		.LBE84:
   20   %for i = 0, 1, 2 %cycle
		 		lea (268,%sp),%sp
		 		clr.l -(%sp)
		 		move.l (%a5)+,-(%sp)
		 		jsr (%a4)
		.LVL32:
		.LBB86:
   21     %for j = 0, 1, 1 %cycle
		 		move.l %d2,-(%sp)
		 		pea .LC3
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL33:
		 		lea (-3608,%fp),%a4
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %a4,-(%sp)
		 		jsr (%a2)
		.LVL34:
		 		add.l #-256,%d5
		.LVL35:
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		move.l %a4,-(%sp)
		 		move.l %d5,-(%sp)
		 		jsr (%a2)
		.LVL36:
		.LBE86:
		.LBB87:
		.LBB88:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d5,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL37:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL38:
		.LDL1:
		.LBE88:
		.LBE87:
   22       printstring("d2(");write(j,0);printstring(", ");write(i,0);printstring(") = "); write(d2(j,i),0);printstring(",  ");
		 		move.l %fp,%d3
		.LVL41:
		 		add.l #-2584,%d3
		.LVL42:
		 		move.l %fp,%d6
		.LVL43:
		 		add.l #-3352,%d6
		.LVL44:
		 		add.l #1792,%d5
		 		jra .L8
		.LVL45:
		.L15:
		.L7:
		.LBE93:
		.LBB94:
		.LBB95:
		 		jsr _imp_newline
		.LVL46:
		.LDL3:
		 		addq.l #4,-4384(%fp)
		.LBE95:
		.LBE94:
		 		moveq #-1,%d4
		.LVL49:
		.L6:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC0
		 		move.l %d3,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL51:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d6,-(%sp)
		 		jsr (%a2)
		.LVL52:
		 		move.l %d2,-(%sp)
		 		move.l %d6,-(%sp)
		 		move.l %d5,-(%sp)
		 		jsr (%a2)
		.LVL53:
		.LBE96:
		.LBB97:
		.LBB98:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d5,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL54:
		 		lea (12,%sp),%sp
		 		lea _imp_printstring,%a3
		 		jsr (%a3)
		.LVL55:
		.LBE98:
		.LBE97:
   23     %repeat
		 		moveq #2,%d0
		 		cmp.l -4380(%fp),%d0
		 		jeq .L14
		.LVL47:
		.L8:
		 		add.l %d2,%sp
		 		clr.l -(%sp)
		 		move.l %d4,-(%sp)
		 		lea _imp_writeint,%a4
		 		jsr (%a4)
		.LVL56:
		.LBB99:
   24     newline
		 		addq.l #1,-4380(%fp)
		.LVL48:
		 		move.l -4384(%fp),%a5
		 		move.l %d2,-(%sp)
		 		pea .LC1
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL57:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		pea -3096(%fp)
		 		jsr (%a2)
		.LVL58:
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		pea -3096(%fp)
		 		pea -536(%fp)
		 		jsr (%a2)
		.LVL59:
		.LBE99:
		.LBB100:
		.LBB101:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		pea -536(%fp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL60:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL61:
		.LBE101:
		.LBE100:
		 		lea (268,%sp),%sp
		 		clr.l -(%sp)
		 		move.l -4380(%fp),-(%sp)
		 		jsr (%a4)
		.LVL62:
		.LBB102:
		 		lea (268,%sp),%sp
		 		moveq #1,%d0
		 		cmp.l %d4,%d0
		 		jne .L6
   25   %repeat
		 		addq.l #1,%d4
		.LVL50:
		.LBB96:
   26   newline
		 		move.l %d2,-(%sp)
		 		pea .LC2
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL63:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		pea -2840(%fp)
		 		jsr (%a2)
		.LVL64:
		 		move.l %fp,%d7
		.LVL65:
		 		add.l #-792,%d7
		.LVL66:
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		pea -2840(%fp)
		 		move.l %d7,-(%sp)
		 		jsr (%a2)
		.LVL67:
		.LBE102:
		.LBB103:
		.LBB104:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d7,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL68:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL69:
		.LBE104:
		.LBE103:
		 		jra .L15
		.L14:
		.L9:
		.LBB108:
		.LBB109:
		 		jsr _imp_newline
		.LVL77:
		.LBE109:
		.LBE108:
		.LBB110:
		.LBB111:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL78:
		.LBE111:
		.LBE110:
		.LFE185:
				.data
				.align	2
		D1.5987:
		 		.long	0
		 		.long	1
		 		.long	2
		 		.long	3
		 		.long	4
		 		.long	5
		.Letext0:
   27 %endofprogram
		 		lea (268,%sp),%sp
		 		clr.l -(%sp)
		 		move.l (%a5),-(%sp)
		 		jsr (%a4)
		.LVL70:
		.LBB105:
   50 Statements compiled
		 		move.l %d2,-(%sp)
		 		pea .LC3
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL71:
		 		add.l #-1536,%d7
		.LVL72:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d7,-(%sp)
		 		jsr (%a2)
		.LVL73:
		 		lea (-1048,%fp),%a4
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		move.l %d7,-(%sp)
		 		move.l %a4,-(%sp)
		 		jsr (%a2)
		.LVL74:
		.LBE105:
		.LBB106:
		.LBB107:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %a4,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL75:
		 		lea (12,%sp),%sp
		 		jsr (%a3)
		.LVL76:
		.LDL4:
		 		lea (12,%a5),%a5
		.LBE107:
		.LBE106:
