         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				NO_APP
		.Ltext0:
				.section	.rodata
		.LC1:
		 		.byte	21
		 		.string	"non-existent-file.txt"
		 		.zero	233
		.LC0:
		 		.byte	16
		 		.string	"Cannot open file"
		 		.zero	238
				.align	2
				.globl	main
		main:
		.LFB185:
		.LVL0:
		 		link.w %fp,#-1280
		 		movem.l #14368,-(%sp)
    2
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL1:
		 		addq.l #8,%sp
    3   %on %event 9 %start
		 		pea 1.w
		 		pea _imp_event+532
		 		jsr __sigsetjmp
		.LVL2:
		 		addq.l #8,%sp
		 		tst.l %d0
		 		jne .L3
		.LVL3:
		 		pea 512.w
		 		pea _imp_event
		 		jsr _imp_on_event_enter
		.LVL4:
		 		addq.l #8,%sp
		 		tst.l %a0
		 		jeq .L3
		.L4:
		.LBB16:
    4     print string("Cannot open file"); newline
		 		move.l %fp,%d3
		.LVL16:
		 		add.l #-1024,%d3
		.LVL17:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC0
		 		move.l %d3,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL18:
		 		move.l %fp,%d4
		.LVL19:
		 		add.l #-1280,%d4
		.LVL20:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL21:
		 		add.l #512,%d3
		 		move.l %d2,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL22:
		.LBE21:
		.LBB22:
		.LBB23:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL23:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL24:
		 		add.l %d2,%sp
		.LBE23:
		.LBE22:
		.LBB24:
		.LBB25:
		 		jsr _imp_newline
		.LVL25:
		.LBE25:
		.LBE24:
		.LBB26:
		.LBB27:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL26:
		.LBE27:
		.LBE26:
		.LFE185:
		.Letext0:
    5     %stop
    6   %finish
    7
    8   open input(1, "non-existent-file.txt");
		 		move.l %fp,%d3
		.LVL5:
		 		add.l #-1024,%d3
		.LVL6:
		 		move.l #256,%d2
		 		move.l %d2,-(%sp)
		 		pea .LC1
		 		move.l %d3,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL7:
		 		move.l %fp,%d4
		.LVL8:
		 		add.l #-768,%d4
		.LVL9:
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL10:
		 		add.l #768,%d3
		 		move.l %d2,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL11:
		.LBE16:
		.LBB17:
		.LBB18:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL12:
		 		lea (12,%sp),%sp
		 		pea 1.w
		 		jsr _imp_openinput
		.LVL13:
		 		lea (260,%sp),%sp
		.LVL14:
		.LBE18:
		.LBE17:
		.LBB19:
		.LBB20:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL15:
		.L3:
		.LBE20:
		.LBE19:
		.LBB21:
    9
   10 %endofprogram
    8 Statements compiled
