         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				NO_APP
		.Ltext0:
				.align	2
				.globl	main
		main:
		.LFB185:
		.LVL0:
		 		link.w %fp,#0
		 		move.l %a2,-(%sp)
    2 ! PASSES A RECORD BY VALUE
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL1:
		.LBB8:
		.LBB9:
    3 %recordformat fm((%integer i %or %byte b1,b2,b3,b4))
    4 %record(fm) a,b
    5
    6 %routine fred(%record(fm) x,%integer y, %record(fm) z)
    7    write(x_b1,1)
		 		pea 1.w
		 		pea 1.w
		 		lea _imp_writeint,%a2
		 		jsr (%a2)
		.LVL2:
    8    write(x_b2,1)
		 		pea 1.w
		 		pea 2.w
		 		jsr (%a2)
		.LVL3:
    9    write(x_b3,1)
		 		pea 1.w
		 		pea 3.w
		 		jsr (%a2)
		.LVL4:
   10    write(x_b4,1)
		 		lea (32,%sp),%sp
		 		pea 1.w
		 		pea 4.w
		 		jsr (%a2)
		.LVL5:
   11    write(z_b1,1)
		 		pea 1.w
		 		pea 5.w
		 		jsr (%a2)
		.LVL6:
   12    write(z_b2,1)
		 		pea 1.w
		 		pea 6.w
		 		jsr (%a2)
		.LVL7:
   13    write(z_b3,1)
		 		pea 1.w
		 		pea 7.w
		 		jsr (%a2)
		.LVL8:
   14    write(z_b4,1)
		 		lea (32,%sp),%sp
		 		pea 1.w
		 		pea 8.w
		 		jsr (%a2)
		.LVL9:
		.LBE9:
		.LBE8:
		.LBB10:
		.LBB11:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL10:
		.LBE11:
		.LBE10:
		.LFE185:
		.Letext0:
   15 %end
?Y unused
   16
   17 a_i=x'01020304'
   18 b_i=x'05060708'
   19 fred(a,9,b)
   20 %endofprogram
   17 Statements compiled
