         Edinburgh IMP77 Compiler - Version 8.4
    1 !%control x'11111111'
				NO_APP
		.Ltext0:
				.section	.rodata
		.LC0:
		 		.byte	7
		 		.string	"TEST OK"
		 		.zero	247
				.align	2
				.globl	main
		main:
		.LFB185:
    2 %BEGIN
		.LVL0:
		 		link.w %fp,#-512
		 		movem.l #14368,-(%sp)
    3 %INTEGER COUNT
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL1:
		 		addq.l #8,%sp
		 		move.l #257,%d0
		.LVL2:
		.L2:
		.LDL1:
		 		subq.l #1,%d0
		.LVL3:
		.LBB23:
		.LBB24:
		.LBB25:
    4 %INTEGER I
    5 %ROUTINE FRED(%INTEGERNAME I,%INTEGER FIRST,STEP,LAST)
    6       %CYCLE I=FIRST,STEP,LAST
    7          COUNT=COUNT+1
    8       %REPEAT
    9 %END
   10       COUNT=0
   11       FRED(I,X'9000',16,X'A000')
		 		jne .L2
		.L3:
		.LVL4:
		.LBE25:
		.LBE24:
		.LBE23:
		.LBB26:
   12       %IF COUNT=257 %AND I=X'A000' %THEN PRINTSTRING("TEST OK") %C
   13          %ELSE PRINTSTRING("WRONG") %AND %MONITOR
   14 %ENDOFPROGRAM
		 		move.l %fp,%d2
		.LVL5:
		 		add.l #-256,%d2
		.LVL6:
		 		move.l #256,%d3
		 		move.l %d3,-(%sp)
		 		pea .LC0
		 		move.l %d2,-(%sp)
		 		lea memcpy,%a2
		 		jsr (%a2)
		.LVL7:
		 		move.l %fp,%d4
		.LVL8:
		 		add.l #-512,%d4
		.LVL9:
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL10:
		 		move.l %d3,-(%sp)
		 		move.l %d4,-(%sp)
		 		move.l %d2,-(%sp)
		 		jsr (%a2)
		.LVL11:
		.LBE26:
		.LBB27:
		.LBB28:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d3,-(%sp)
		 		move.l %d2,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL12:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL13:
		.LDL2:
		.LBE28:
		.LBE27:
		.LBB29:
		.LBB30:
		 		add.l %d3,%sp
		 		clr.l -(%sp)
		 		jsr exit
		.LVL14:
		.LBE30:
		.LBE29:
		.LFE185:
		.Letext0:
   12 Statements compiled
