         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.section	".rodata"
		.LC1:
				.byte	21
				.asciz	"non-existent-file.txt"
				.skip	233
		.LC0:
				.byte	16
				.asciz	"Cannot open file"
				.skip	238
				.section	".text"
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -1728, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    2
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
    3   %on %event 9 %start
				mov	1, %o1
				sethi	%hi(_imp_event+544), %o0
				call	__sigsetjmp, 0
				 or	%o0, %lo(_imp_event+544), %o0
		.LVL3:
				cmp	%o0, 0
				bne,pn	%icc, .L3
				 mov	512, %o1
		.LVL4:
				sethi	%hi(_imp_event), %o0
				call	_imp_on_event_enter, 0
				 or	%o0, %lo(_imp_event), %o0
		.LVL5:
				brz,pn	%o0, .L3
				 mov	256, %o2
		.L4:
		.LBB16:
    4     print string("Cannot open file"); newline
				mov	256, %o2
				sethi	%hi(.LC0), %o1
				or	%o1, %lo(.LC0), %o1
				call	memcpy, 0
				 add	%fp, 1015, %o0
		.LVL12:
				mov	256, %o2
				add	%fp, 1015, %o1
				call	memcpy, 0
				 add	%fp, 759, %o0
		.LVL13:
				mov	256, %o2
				add	%fp, 759, %o1
				call	memcpy, 0
				 add	%fp, 1527, %o0
		.LVL14:
		.LBE21:
		.LBB22:
		.LBB23:
				mov	256, %o2
				add	%fp, 1527, %o1
				call	memcpy, 0
				 add	%fp, 495, %o0
		.LVL15:
				call	_imp_printstring, 0
				 add	%fp, 495, %o0
		.LVL16:
		.LBE23:
		.LBE22:
		.LBB24:
		.LBB25:
				call	_imp_newline, 0
				 nop
		.LVL17:
		.LBE25:
		.LBE24:
		.LBB26:
		.LBB27:
				call	exit, 0
				 mov	0, %o0
		.LVL18:
		.LBE27:
		.LBE26:
				nop
		.LFE185:
		.Letext0:
    5     %stop
    6   %finish
    7
    8   open input(1, "non-existent-file.txt");
				sethi	%hi(.LC1), %o1
				or	%o1, %lo(.LC1), %o1
				call	memcpy, 0
				 add	%fp, 1015, %o0
		.LVL6:
				mov	256, %o2
				add	%fp, 1015, %o1
				call	memcpy, 0
				 add	%fp, 1271, %o0
		.LVL7:
				mov	256, %o2
				add	%fp, 1271, %o1
				call	memcpy, 0
				 add	%fp, 1783, %o0
		.LVL8:
		.LBE16:
		.LBB17:
		.LBB18:
				mov	256, %o2
				add	%fp, 1783, %o1
				call	memcpy, 0
				 add	%fp, 495, %o0
		.LVL9:
				add	%fp, 495, %o1
				call	_imp_openinput, 0
				 mov	1, %o0
		.LVL10:
		.LBE18:
		.LBE17:
		.LBB19:
		.LBB20:
				call	exit, 0
				 mov	0, %o0
		.LVL11:
		.L3:
		.LBE20:
		.LBE19:
		.LBB21:
    9
   10 %endofprogram
    8 Statements compiled
