         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC0:
				.byte	7
				.asciz	"Test OK"
				.skip	247
				.section	".text"
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
				.register	%g2, #scratch
				.register	%g3, #scratch
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -960, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    2 %recordformat rf(%short h0,%byte b2,b3)
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
		.LBB14:
		.LBB15:
    3 %ownrecord(rf) x1,x2
    4 %integerfn fred
    5 %integer k
    6 %record(rf)r0,r1,r2
    7 k=13
    8 r0_h0=12
    9 x1_h0=17
				sethi	%hi(X1.6064), %g2
				mov	17, %g3
				sth	%g3, [%g2+%lo(X1.6064)]
   10 x2=x1
				sethi	%hi(X2.6065), %g1
				sth	%g3, [%g1+%lo(X2.6065)]
				lduh	[%g2+%lo(X1.6064)+2], %g2
				sth	%g2, [%g1+%lo(X2.6065)+2]
		.LVL3:
		.LBE15:
		.LBE14:
		.LBB16:
   11 r1=r0
   12 r2=r1
   13 %result=r2_h0
   14 %end
   15 %if fred=12 %and x2_H0=17 %then printstring("Test OK")
   16 %endofprogram
   16 Statements compiled
				mov	256, %o2
				sethi	%hi(.LC0), %o1
				or	%o1, %lo(.LC0), %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL4:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL5:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL6:
		.LBE16:
		.LBB17:
		.LBB18:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 1263, %o0
		.LVL7:
				call	_imp_printstring, 0
				 add	%fp, 1263, %o0
		.LVL8:
		.LDL1:
		.LBE18:
		.LBE17:
		.LBB19:
		.LBB20:
				call	exit, 0
				 mov	0, %o0
		.LVL9:
		.LBE20:
		.LBE19:
				nop
		.LFE185:
				.common	X1.6064,4,2
				.common	X2.6065,4,2
		.Letext0:
