         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC1:
				.byte	7
				.asciz	"Test ok"
				.skip	247
				.section	".text"
				.align 4
				.proc	020
		FRED.6058:
		.LFB186:
		.LVL13:
				save	%sp, -176, %sp
		.LVL14:
    2 %externalinteger fredfred
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL15:
    3 %routine fred(%integer opcode)
				.register	%g2, #scratch
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -1472, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    4 %externalintegerspec fredfred
    5 %integer i,j,k,l
    6 %string(11) ts
    7       ts="abcdef"
    8 i=1; j=2; k=3
    9 write(fredfred,5)
				mov	11, %o2
				add	%fp, 1271, %o1
				call	_imp_strncpy, 0
				 add	%fp, 1015, %o0
		.LVL2:
				mov	5, %o1
				sethi	%hi(FREDFRED), %g1
				call	_imp_writeint, 0
				 ldsw	[%g1+%lo(FREDFRED)], %o0
		.LVL3:
   10 %if opcode=x'9a' %or X'e8'<=opcode<=x'e9' %or x'81'<=opcode<=x'89' %then printstring("Test ok")
				cmp	%i0, 154
				be,pn	%icc, .L2
				 add	%i0, -232, %g1
		.LVL4:
		.LBB13:
   11 newline
   12 %end
?L unused
   13 fredfred=5
				ldx	[%fp+2039], %g1
				ldx	[%g7+40], %g2
				xor	%g1, %g2, %g1
				mov	0, %g2
				brnz,pn	%g1, .L6
				 nop
				return	%i7+8
				 nop
		.L6:
				call	__stack_chk_fail, 0
				 nop
		.LVL12:
				nop
		.LFE186:
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
   14 fred(x'e8')
				call	FRED.6058, 0
				 mov	232, %o0
		.LVL16:
		.LBB20:
		.LBB21:
				call	exit, 0
				 mov	0, %o0
		.LVL17:
		.LBE21:
		.LBE20:
				nop
		.LFE185:
		.Letext0:
   15 %endofprogram
   17 Statements compiled
				cmp	%g1, 1
				bleu,pn	%icc, .L2
				 add	%i0, -129, %i0
		.L3:
		.LVL5:
		.LBE13:
		.LBB14:
				cmp	%i0, 8
				bgu,pt	%icc, .L4
				 nop
		.L2:
		.LBE14:
		.LBB15:
				mov	256, %o2
				sethi	%hi(.LC1), %o1
				or	%o1, %lo(.LC1), %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL6:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL7:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL8:
		.LBE15:
		.LBB16:
		.LBB17:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 751, %o0
		.LVL9:
				call	_imp_printstring, 0
				 add	%fp, 751, %o0
		.LVL10:
		.L4:
		.LBE17:
		.LBE16:
		.LBB18:
		.LBB19:
				call	_imp_newline, 0
				 nop
		.LVL11:
		.LBE19:
		.LBE18:
