         Edinburgh IMP77 Compiler - Version 8.4
    1
		.Ltext0:
		_imp_PI:
		.LFB9:
				pushl	%ebp
				movl	%esp, %ebp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				fldl	.LC3@GOTOFF(%eax)
				popl	%ebp
				ret
		.LFE9:
		_imp_SIN:
		.LFB46:
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				subl	$20, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	8(%ebp), %edx
				movl	%edx, -16(%ebp)
				movl	12(%ebp), %edx
				movl	%edx, -12(%ebp)
				subl	$8, %esp
				pushl	-12(%ebp)
				pushl	-16(%ebp)
				movl	%eax, %ebx
				call	sin@PLT
				addl	$16, %esp
				movl	-4(%ebp), %ebx
				leave
				ret
		.LFE46:
		_imp_SQRT:
		.LFB65:
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%ebx
				subl	$20, %esp
				call	__x86.get_pc_thunk.ax
				addl	$_GLOBAL_OFFSET_TABLE_, %eax
				movl	8(%ebp), %edx
				movl	%edx, -16(%ebp)
				movl	12(%ebp), %edx
				movl	%edx, -12(%ebp)
				subl	$8, %esp
				pushl	-12(%ebp)
				pushl	-16(%ebp)
				movl	%eax, %ebx
				call	sqrt@PLT
				addl	$16, %esp
				movl	-4(%ebp), %ebx
				leave
				ret
		.LFE65:
				.section	.rodata
		.LC4:
				.string	"Illegal cycle I = 0, 1, STEPS"
				.align 32
		.LC2:
				.byte	16
				.string	"test-in/rt28.imp"
				.zero	238
		TABULATE.6026:
		.LFB190:
    2 %begin
				leal	4(%esp), %ecx
				andl	$-16, %esp
				pushl	-4(%ecx)
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%esi
				pushl	%ebx
				pushl	%ecx
				subl	$1064, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	%ecx, %eax
				movl	4(%eax), %edx
				movl	%edx, -1068(%ebp)
				movl	%gs:20, %esi
				movl	%esi, -28(%ebp)
				xorl	%esi, %esi
				leal	8(%ebp), %edx
				movl	%edx, -1060(%ebp)
				subl	$8, %esp
				pushl	-1068(%ebp)
				pushl	(%eax)
				call	_imp_initialise@PLT
				addl	$16, %esp
		.LBB28:
    3 %routine Tabulate (%longrealfn func(%longreal x),%longreal from,to,
				pushl	%ebp
				movl	%esp, %ebp
				pushl	%edi
				pushl	%esi
				pushl	%ebx
				subl	$876, %esp
				call	__x86.get_pc_thunk.bx
				addl	$_GLOBAL_OFFSET_TABLE_, %ebx
				movl	8(%ebp), %eax
				movl	%eax, -860(%ebp)
				movl	12(%ebp), %eax
				movl	%eax, -872(%ebp)
				movl	16(%ebp), %eax
				movl	%eax, -868(%ebp)
				movl	20(%ebp), %eax
				movl	%eax, -880(%ebp)
				movl	24(%ebp), %eax
				movl	%eax, -876(%ebp)
				movl	%ecx, -864(%ebp)
				movl	%gs:20, %eax
				movl	%eax, -28(%ebp)
				xorl	%eax, %eax
    4    %integer steps)
    5 ! func(x) is the dummy formal function
    6 %real value,inc
    7 %integer i
    8 !
    9 inc=(to-from)/steps
				fldl	-880(%ebp)
				fsubl	-872(%ebp)
				fildl	28(%ebp)
				fdivrp	%st, %st(1)
				fstps	-844(%ebp)
   10 !
   11 value=from
				fldl	-872(%ebp)
				fstps	-852(%ebp)
		.LBB19:
   12 %for i=0,1,steps %cycle
				movl	28(%ebp), %eax
				movl	%eax, -840(%ebp)
		.LBB20:
				movl	-840(%ebp), %eax
				movl	%eax, -836(%ebp)
				movl	-836(%ebp), %eax
				xorl	$1, %eax
				shrl	$31, %eax
				movzbl	%al, %eax
		.LBE20:
				testl	%eax, %eax
				je	.L8
				leal	-540(%ebp), %eax
				subl	$8, %esp
				leal	.LC4@GOTOFF(%ebx), %edx
				pushl	%edx
				pushl	%eax
				call	_imp_c2istr@PLT
				addl	$12, %esp
				movl	_imp_current_line@GOT(%ebx), %eax
				movl	(%eax), %eax
				testl	%eax, %eax
				je	.L9
				movl	_imp_current_line@GOT(%ebx), %eax
				movl	(%eax), %eax
				movl	%eax, -888(%ebp)
				jmp	.L10
		.L9:
				movl	$12, -888(%ebp)
		.L10:
				movl	_imp_current_file@GOT(%ebx), %eax
				movl	(%eax), %eax
				testl	%eax, %eax
				je	.L11
				movl	_imp_current_file@GOT(%ebx), %eax
				movl	(%eax), %edx
				leal	-284(%ebp), %eax
				subl	$8, %esp
				pushl	%edx
				pushl	%eax
				call	_imp_c2istr@PLT
				addl	$12, %esp
				jmp	.L12
		.L11:
		.LBB21:
				leal	-284(%ebp), %eax
				leal	.LC2@GOTOFF(%ebx), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-796(%ebp), %eax
				leal	-284(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.LBE21:
				leal	-284(%ebp), %eax
				leal	-796(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.L12:
				pushl	$0
				pushl	$1
				pushl	$5
				subl	$256, %esp
				movl	%esp, %eax
				movl	%eax, %edi
				leal	-540(%ebp), %eax
				movl	$64, %edx
				movl	%eax, %esi
				movl	%edx, %ecx
				rep movsl
				pushl	-888(%ebp)
				subl	$256, %esp
				movl	%esp, %eax
				movl	%eax, %edi
				leal	-284(%ebp), %eax
				movl	$64, %edx
				movl	%eax, %esi
				movl	%edx, %ecx
				rep movsl
				call	_signal_event@PLT
				addl	$528, %esp
		.L8:
				movl	$-1, -848(%ebp)
		.L13:
				movl	-848(%ebp), %eax
				cmpl	-840(%ebp), %eax
				je	.L19
				addl	$1, -848(%ebp)
				nop
		.L15:
		.LBE19:
   13    print(value,4,2) ; print(func(value),10,4) ; newline
				flds	-852(%ebp)
				fstpl	-808(%ebp)
				movl	$4, -824(%ebp)
				movl	$2, -820(%ebp)
		.LBB22:
		.LBB23:
				pushl	-820(%ebp)
				pushl	-824(%ebp)
				pushl	-804(%ebp)
				pushl	-808(%ebp)
				call	_imp_print@PLT
				addl	$16, %esp
		.LBE23:
		.LBE22:
				flds	-852(%ebp)
				subl	$8, %esp
				leal	-8(%esp), %esp
				fstpl	(%esp)
				movl	-860(%ebp), %eax
				call	*%eax
		.LVL0:
				addl	$16, %esp
				fstpl	-816(%ebp)
				movl	$10, -832(%ebp)
				movl	$4, -828(%ebp)
		.LBB24:
		.LBB25:
				pushl	-828(%ebp)
				pushl	-832(%ebp)
				pushl	-812(%ebp)
				pushl	-816(%ebp)
				call	_imp_print@PLT
				addl	$16, %esp
		.LBE25:
		.LBE24:
		.LBB26:
		.LBB27:
				call	_imp_newline@PLT
		.LBE27:
		.LBE26:
   14    value=value+inc
				flds	-852(%ebp)
				fadds	-844(%ebp)
				fstps	-852(%ebp)
   15 %repeat
				jmp	.L13
		.L19:
   16 %end ;!  of routine tabulate
				nop
				movl	-28(%ebp), %eax
				xorl	%gs:20, %eax
				je	.L17
				call	__stack_chk_fail_local
		.L17:
				leal	-12(%ebp), %esp
				popl	%ebx
				popl	%esi
				popl	%edi
				popl	%ebp
				ret
		.LFE190:
				.section	.rodata
				.align 32
		.LC0:
				.byte	29
				.string	"\n    x               sine(x)\n"
				.zero	225
				.align 32
		.LC1:
				.byte	29
				.string	"\n    x         squareroot(x)\n"
				.zero	225
				.globl	main
		main:
		.LFB189:
   17 !
   18 ! now call with some functions....
   19 printstring("
				leal	-284(%ebp), %eax
				leal	.LC0@GOTOFF(%ebx), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-1052(%ebp), %eax
				leal	-284(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-284(%ebp), %eax
				leal	-1052(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.LBE28:
		.LBB29:
		.LBB30:
				subl	$256, %esp
				movl	%esp, %eax
				movl	%eax, %edi
				leal	-284(%ebp), %eax
				movl	$64, %edx
				movl	%eax, %esi
				movl	%edx, %ecx
				rep movsl
				call	_imp_printstring@PLT
				addl	$256, %esp
		.LBE30:
		.LBE29:
   20     x               sine(x)
   21 ")
   22 tabulate ( sin, 0.0,pi/2,10)
				call	_imp_PI
				fldl	.LC5@GOTOFF(%ebx)
				fdivrp	%st, %st(1)
				subl	$8, %esp
				leal	-1060(%ebp), %eax
				pushl	$10
				leal	-8(%esp), %esp
				fstpl	(%esp)
				fldz
				leal	-8(%esp), %esp
				fstpl	(%esp)
				leal	_imp_SIN@GOTOFF(%ebx), %edx
				pushl	%edx
				movl	%eax, %ecx
				call	TABULATE.6026
				addl	$32, %esp
		.LBB31:
   23 ! note that the function name appears WITHOUT parameters in the call
   24 !
   25 printstring("
				leal	-540(%ebp), %eax
				leal	.LC1@GOTOFF(%ebx), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-796(%ebp), %eax
				leal	-540(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
				leal	-540(%ebp), %eax
				leal	-796(%ebp), %edx
				movl	$64, %ecx
				movl	%eax, %edi
				movl	%edx, %esi
				rep movsl
		.LBE31:
		.LBB32:
		.LBB33:
				subl	$256, %esp
				movl	%esp, %eax
				movl	%eax, %edi
				leal	-540(%ebp), %eax
				movl	$64, %edx
				movl	%eax, %esi
				movl	%edx, %ecx
				rep movsl
				call	_imp_printstring@PLT
				addl	$256, %esp
		.LBE33:
		.LBE32:
   26     x         squareroot(x)
   27 ")
   28 tabulate( sqrt, 0.0,10.0,5)
				subl	$8, %esp
				leal	-1060(%ebp), %eax
				pushl	$5
				fldl	.LC7@GOTOFF(%ebx)
				leal	-8(%esp), %esp
				fstpl	(%esp)
				fldz
				leal	-8(%esp), %esp
				fstpl	(%esp)
				leal	_imp_SQRT@GOTOFF(%ebx), %edx
				pushl	%edx
				movl	%eax, %ecx
				call	TABULATE.6026
				addl	$32, %esp
				movl	$0, -1056(%ebp)
		.LBB34:
		.LBB35:
				subl	$12, %esp
				pushl	-1056(%ebp)
				call	exit@PLT
		.LBE35:
		.LBE34:
		.LFE189:
				.section	.rodata
				.align 8
		.LC3:
				.long	1413754136
				.long	1074340347
				.align 8
		.LC5:
				.long	0
				.long	1073741824
				.align 8
		.LC7:
				.long	0
				.long	1076101120
				.section	.text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
				.globl	__x86.get_pc_thunk.ax
				.hidden	__x86.get_pc_thunk.ax
		__x86.get_pc_thunk.ax:
		.LFB191:
				movl	(%esp), %eax
				ret
		.LFE191:
				.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:
		.LFB192:
				movl	(%esp), %ebx
				ret
		.LFE192:
		.Letext0:
   29 !
   30 %endofprogram
   18 Statements compiled
