         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
		.LVL0:
				save	%sp, -176, %sp
		.LVL1:
    2 ! PASSES A RECORD BY VALUE
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
		.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)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	1, %o0
		.LVL3:
    8    write(x_b2,1)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	2, %o0
		.LVL4:
    9    write(x_b3,1)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	3, %o0
		.LVL5:
   10    write(x_b4,1)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	4, %o0
		.LVL6:
   11    write(z_b1,1)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	5, %o0
		.LVL7:
   12    write(z_b2,1)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	6, %o0
		.LVL8:
   13    write(z_b3,1)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	7, %o0
		.LVL9:
   14    write(z_b4,1)
				mov	1, %o1
				call	_imp_writeint, 0
				 mov	8, %o0
		.LVL10:
		.LBE9:
		.LBE8:
		.LBB10:
		.LBB11:
				call	exit, 0
				 mov	0, %o0
		.LVL11:
		.LBE11:
		.LBE10:
				nop
		.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
