         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				NO_APP
		.Ltext0:
				.section	.rodata
		.LC1:
		 		.byte	9
		 		.string	"expected="
		 		.zero	245
		.LC2:
		 		.byte	8
		 		.string	" actual="
		 		.zero	246
				.align	2
		TEST.6023:
		.LFB186:
		.LVL22:
		 		link.w %fp,#-2324
		 		movem.l #12320,-(%sp)
		 		lea (8,%fp),%a0
		.LVL23:
		 		move.l %a0,-4(%fp)
    2 %owninteger swopped =0
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL24:
		 		pea 768.w
		 		clr.l -(%sp)
		 		pea -776(%fp)
		 		jsr memset
		.LVL25:
		 		move.b #9,-264(%fp)
		 		lea (-263,%fp),%a0
		 		move.l #678655855,(%a0)+
		 		move.l #1886414180,(%a0)+
		 		move.w #10496,(%a0)+
		 		clr.b (%a0)
    3 %recordformat f1(%integer i %or %byte b0,b1,b2,b3 %or %string(3)s)
    4 %recordformat f2(%integer i,%record(f1)f)
    5 %recordformat f3(%integer k,%record(f2)f)
    6 %integer i,fail,j,k
    7 %routine test(%integer exp,swexp,act)
		.LVL0:
		 		link.w %fp,#-1024
		 		movem.l #15420,-(%sp)
		 		move.l 8(%fp),%d5
		 		move.l 16(%fp),%d4
		 		move.l %a0,%a3
    8 %if swopped=0 %start
		 		move.l SWOPPED.5986,%d0
		 		jne .L6
    9       %if exp=act %then swopped=-1
		 		cmp.l %d5,%d4
		 		jeq .L10
   10       %if swexp=act %then swopped=1
		 		cmp.l 12(%fp),%d4
		 		jne .L8
		.L9:
		 		moveq #-1,%d0
		 		move.l %d0,SWOPPED.5986
		 		cmp.l 12(%fp),%d5
		 		jne .L1
		 		jra .L9
		.L2:
		.L6:
   11 %finish
		 		moveq #1,%d1
		 		move.l %d1,SWOPPED.5986
		 		jra .L5
		.L10:
   12 %if swopped=-1 %and exp=act %then %return
		 		moveq #-1,%d1
		 		cmp.l %d0,%d1
		 		jeq .L11
		.L7:
   13 %if swopped=1 %and swexp=act %then %return
		 		moveq #1,%d1
		 		cmp.l %d0,%d1
		 		jne .L8
		.L5:
		 		cmp.l %d5,%d4
		 		jne .L8
		 		jra .L1
		.LFE186:
				.align	2
				.globl	main
		main:
		.LFB185:
   14       printstring("expected="); write(exp,5)
		 		cmp.l 12(%fp),%d4
		 		jeq .L1
		.L8:
		.LBB17:
		 		move.l %fp,%d3
		.LVL1:
		 		add.l #-256,%d3
		.LVL2:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC1
		 		move.l %d3,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL3:
		 		lea (-1024,%fp),%a4
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %a4,-(%sp)
		 		jsr (%a2)
		.LVL4:
		 		move.l %d2,-(%sp)
		 		move.l %a4,-(%sp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL5:
		.LBE17:
		.LBB18:
		.LBB19:
		 		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,%a5
		 		jsr (%a5)
		.LVL7:
		.LBE19:
		.LBE18:
   15       printstring(" actual="); write(act,5); newline
		 		add.l %d2,%sp
		 		pea 5.w
		 		move.l %d5,-(%sp)
		 		lea _imp_writeint,%a4
		 		jsr (%a4)
		.LVL8:
		.LBB20:
		 		add.l #-256,%d3
		.LVL9:
		 		move.l %d2,-(%sp)
		 		pea .LC2
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL10:
		 		move.l %fp,%d5
		.LVL11:
		 		add.l #-768,%d5
		.LVL12:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d5,-(%sp)
		 		jsr (%a2)
		.LVL13:
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		move.l %d5,-(%sp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL14:
		.LBE20:
		.LBB21:
		.LBB22:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL15:
		 		lea (12,%sp),%sp
		 		jsr (%a5)
		.LVL16:
		.LBE22:
		.LBE21:
   16       fail=fail+1
		 		lea (268,%sp),%sp
		 		pea 5.w
		 		move.l %d4,-(%sp)
		 		jsr (%a4)
		.LVL17:
		.LBB23:
		.LBB24:
		 		jsr _imp_newline
		.LVL18:
		.LBE24:
		.LBE23:
		 		addq.l #1,(%a3)
   17       %monitor
   18 %end
		 		addq.l #8,%sp
		.LVL19:
		.L1:
   19 %conststring(11) %array tx(-1:1)="","","(swopped)";
		 		movem.l -1056(%fp),#15420
		 		unlk %fp
		.LVL20:
		 		rts
		.LVL21:
		.L11:
   20 %record(f1) r1
   21 %record(f2) r2
   22 %record(f3) r3
   23 fail=0
		 		clr.l -8(%fp)
		.LVL26:
		.LDL1:
   24       j=0
   25 l1:
   26 r1_i=0
		 		clr.l -1032(%fp)
		.LVL27:
   27 k=r1_I+j
   28 r1_b3=5
		 		move.b #5,-1029(%fp)
   29 test(5,X'05000000',r1_i)
		 		move.l -1032(%fp),%d2
		 		move.l %d2,-(%sp)
		 		move.l #83886080,-(%sp)
		 		pea 5.w
		 		lea TEST.6023,%a2
		 		lea (-8,%fp),%a0
		 		jsr (%a2)
		.LVL28:
   30 test(5,x'05000000',r1_i+j)
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		move.l #83886080,-(%sp)
		 		pea 5.w
		 		lea (-8,%fp),%a0
		 		jsr (%a2)
		.LVL29:
   31 r2_f_i=1
		 		moveq #1,%d0
		 		move.l %d0,-1288(%fp)
   32 r2_f_b3=6
		 		move.b #6,-1285(%fp)
   33 test(6,x'06000001',r2_f_i)
		 		move.l -1288(%fp),-(%sp)
		 		move.l #100663297,-(%sp)
		 		pea 6.w
		 		lea (-8,%fp),%a0
		 		jsr (%a2)
		.LVL30:
   34 r3_f_f_i=1
		 		moveq #1,%d0
		 		move.l %d0,-1548(%fp)
   35 r3_f_f_b3=6
		 		move.b #6,-1545(%fp)
   36 test(6,x'06000001',r3_f_f_i)
		 		move.l -1548(%fp),-(%sp)
		 		move.l #100663297,-(%sp)
		 		pea 6.w
		 		lea (-8,%fp),%a0
		 		jsr (%a2)
		.LVL31:
   37 %if fail=0 %then printstring("Test ok ".tx(swopped))
		 		lea (36,%sp),%sp
		 		tst.l -8(%fp)
		 		jeq .L14
		.L13:
		.LVL32:
		.LBB25:
		.LBB26:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL33:
		.L14:
		.LBE26:
		.LBE25:
		.LBB27:
		.LBB28:
   38 %endofprogram
?L1 unused
?I unused
   40 Statements compiled
		 		move.l SWOPPED.5986,%d0
		 		addq.l #1,%d0
		 		lsl.l #8,%d0
		 		pea -776(%fp,%d0.l)
		 		pea -2068(%fp)
		 		move.l %fp,%d2
		.LVL34:
		 		add.l #-1812,%d2
		.LVL35:
		 		move.l %d2,%a1
		 		jsr _imp_join
		.LVL36:
		 		move.l #256,%d3
		 		move.l %d3,-(%sp)
		 		pea -2324(%fp)
		 		move.l %d2,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL37:
		.LBE28:
		.LBE27:
		.LBB29:
		.LBB30:
		 		lea (-256,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL38:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL39:
		 		lea (276,%sp),%sp
		 		jra .L13
		.LBE30:
		.LBE29:
		.LFE185:
				.comm	SWOPPED.5986,4,2
		.Letext0:
