         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
		.Ltext0:
				.globl	main
		main:
		.LFB189:
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%ebx
				pushl	%ecx
				subl	$188, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -188(%ebp)
				movl	%gs:20, %edi
				movl	%edi, -28(%ebp)
				xorl	%edi, %edi
				subl	$8, %esp
				pushl	-188(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
    2   %own %integer %array negarray(-1:1) = 42, 1234567, 17
				leal	-164(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	NEGARRAY.6021@GOTOFF(%ebx), %eax
				movl	%eax, -164(%ebp)
				movl	$4, -160(%ebp)
    3   %const %short %integer %array index(0:1) = 0, -1
				movw	$0, -168(%ebp)
				movw	$-1, -166(%ebp)
				leal	-96(%ebp), %edx
				movl	$0, %eax
				movl	$17, %ecx
				movl	%edx, %edi
				rep stosl
				leal	-168(%ebp), %eax
				movl	%eax, -96(%ebp)
				movl	$2, -92(%ebp)
    4   %integer i
    5
    6   i = 1
				movl	$1, -176(%ebp)
    7
    8   write(negarray(index(i)), 4);   ! Should be negarray(-1) which is 42.
				movl	-176(%ebp), %eax
				movzwl	-168(%ebp,%eax,2), %eax
				cwtl
				addl	$1, %eax
				movl	NEGARRAY.6021@GOTOFF(%ebx,%eax,4), %eax
				subl	$8, %esp
				pushl	$4
				pushl	%eax
				call	_imp_writeint@PLT
				addl	$16, %esp
		.LBB6:
		.LBB7:
				call	_imp_newline@PLT
				movl	$0, -172(%ebp)
		.LBE7:
		.LBE6:
		.LBB8:
		.LBB9:
				subl	$12, %esp
				pushl	-172(%ebp)
				call	exit@PLT
		.LBE9:
		.LBE8:
		.LFE189:
				.data
				.align 4
		NEGARRAY.6021:
				.long	42
				.long	1234567
				.long	17
				.section	.text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat
				.globl	__x86.get_pc_thunk.bx
				.hidden	__x86.get_pc_thunk.bx
		__x86.get_pc_thunk.bx:
		.LFB190:
				movl	(%esp), %ebx
				ret
		.LFE190:
		.Letext0:
    9   newline
   10
   11 %endofprogram
    8 Statements compiled
