         Edinburgh IMP77 Compiler - Version 8.4
    1 %BEGIN
				NO_APP
		.Ltext0:
				.section	.rodata
		.LC2:
		 		.byte	15
		 		.string	"\nWRONG ANSWERS\n"
		 		.zero	239
		.LC0:
		 		.byte	35
		 		.string	"\nTEST OK    (BYTE ADDRESS ANSWERS)\n"
		 		.zero	219
		.LC1:
		 		.byte	32
		 		.string	"\nTEST OK (WORD ADDRESS ANSWERS)\n"
		 		.zero	222
				.align	2
				.globl	main
		main:
		.LFB185:
		.LVL0:
		 		link.w %fp,#-808
		 		movem.l #14368,-(%sp)
    2 %RECORDFORMAT F1(%INTEGER I,J,K,L)
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL1:
		.LBB39:
		.LBB40:
		 		moveq #-113,%d0
		 		not.b %d0
		 		add.l %fp,%d0
		.LVL2:
		.LBE40:
		.LBE39:
    3 %RECORDFORMAT F2(%INTEGER P,%RECORD(F1)%ARRAY A(0:8))
    4 %RECORD(F2) R,RP
    5 %RECORD(F2)%NAME RR
    6 %RECORD(F1)%NAME RN
    7 %INTEGER I,J,K,L
    8 RR==RP
    9 I=ADDR(R_A(0))
   10 RN==R_A(0)
   11 J=ADDR(R_A(0)_K)
		 		lea (-148,%fp),%a1
		 		lea (12,%a1),%a0
		.LVL3:
		.LBB41:
		.LBB42:
		 		move.l #-292,%d2
		 		add.l %fp,%d2
		.LVL4:
		.LBE42:
		.LBE41:
   12 K=ADDR(RR_A(0))
   13 L=ADDR(RR_A(0)_K)
		 		lea (-296,%fp),%a2
		.LVL5:
		 		lea (12,%a2),%a1
		.LVL6:
   14 RN==RR_A(0)
   15 %IF I+8=J %AND ADDR(R)+4=I %AND K+8=L %C
		 		addq.l #8,%sp
   16       %AND ADDR(RR)+4=K=ADDR(RN) %THEN PRINTSTRING("
		 		move.l %fp,%d1
		.LVL7:
		 		add.l #-144,%d1
		.LVL8:
		 		cmp.l %d1,%d0
		 		jeq .L4
		.L2:
   17 TEST OK    (BYTE ADDRESS ANSWERS)
		 		add.l #-140,%d1
		 		cmp.l %d1,%a1
		 		jne .L2
		.LVL23:
		.LBB48:
   18 ") %AND %STOP
   19 %IF I+4=J %AND ADDR(R)+2=I %AND K+4=L %C
		 		move.l %d0,%d1
		 		addq.l #4,%d1
		 		cmp.l %d1,%a0
		 		jne .L3
   20       %AND ADDR(RR)+2=K=ADDR(RN) %THEN PRINTSTRING("
		 		move.l %fp,%d1
		.LVL9:
		 		add.l #-146,%d1
		.LVL10:
		 		cmp.l %d1,%d0
		 		jeq .L5
		.LVL11:
		.L3:
		.LBB43:
   21 TEST OK (WORD ADDRESS ANSWERS)
		 		subq.l #8,%d1
		 		cmp.l %d1,%d2
		 		jne .L2
		.LBE48:
		.LBB49:
		 		move.l %d2,%d0
		.LVL34:
		 		addq.l #4,%d0
		 		cmp.l %d0,%a1
		 		jne .L3
		.LVL35:
		.LBB54:
		 		move.l %fp,%d0
		.LVL36:
		 		add.l #-294,%d0
		.LVL37:
		 		cmp.l %d0,%d2
		 		jne .L3
		.LBE54:
		.LBB55:
   22 ")  %AND %STOP
   23 PRINTSTRING("
		 		move.l %fp,%d2
		.LVL12:
		 		add.l #-552,%d2
		.LVL13:
		 		move.l #256,%d3
		 		move.l %d3,-(%sp)
		 		pea .LC2
		 		move.l %d2,-(%sp)
		 		lea memcpy,%a2
		.LVL14:
		 		jsr (%a2)
		.LVL15:
		 		move.l %fp,%d4
		.LVL16:
		 		add.l #-808,%d4
		.LVL17:
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL18:
		 		move.l %d3,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l %d2,-(%sp)
		 		jsr (%a2)
		.LVL19:
		.LBE43:
		.LBB44:
		.LBB45:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL20:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL21:
		.LBE45:
		.LBE44:
		.LBB46:
		.LBB47:
		 		add.l %d3,%sp
		 		clr.l -(%sp)
		 		jsr exit
		.LVL22:
		.L4:
		.LBE47:
		.LBE46:
   24 WRONG ANSWERS
   25 ")
		 		add.l #-260,%d2
		.LVL24:
		 		move.l #256,%d3
		 		move.l %d3,-(%sp)
		 		pea .LC0
		 		move.l %d2,-(%sp)
		 		lea memcpy,%a2
		.LVL25:
		 		jsr (%a2)
		.LVL26:
		 		move.l %fp,%d4
		.LVL27:
		 		add.l #-808,%d4
		.LVL28:
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL29:
		 		move.l %d3,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l %d2,-(%sp)
		 		jsr (%a2)
		.LVL30:
		.LBE49:
		.LBB50:
		.LBB51:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL31:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL32:
		.LBE51:
		.LBE50:
		.LBB52:
		.LBB53:
		 		add.l %d3,%sp
		 		clr.l -(%sp)
		 		jsr exit
		.LVL33:
		.L5:
		.LBE53:
		.LBE52:
   26 %ENDOFPROGRAM
   18 Statements compiled
		 		move.l %fp,%d2
		.LVL38:
		 		add.l #-552,%d2
		.LVL39:
		 		move.l #256,%d3
		 		move.l %d3,-(%sp)
		 		pea .LC1
		 		move.l %d2,-(%sp)
		 		lea memcpy,%a2
		.LVL40:
		 		jsr (%a2)
		.LVL41:
		 		move.l %fp,%d4
		.LVL42:
		 		add.l #-808,%d4
		.LVL43:
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL44:
		 		move.l %d3,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l %d2,-(%sp)
		 		jsr (%a2)
		.LVL45:
		.LBE55:
		.LBB56:
		.LBB57:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL46:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL47:
		.LBE57:
		.LBE56:
		.LBB58:
		.LBB59:
		 		add.l %d3,%sp
		 		clr.l -(%sp)
		 		jsr exit
		.LVL48:
		.LBE59:
		.LBE58:
		.LFE185:
		.Letext0:
