         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				NO_APP
		.Ltext0:
				.section	.rodata
		.LC1:
		 		.byte	20
		 		.string	"Oh boy, this is fun!"
		 		.zero	234
				.align	2
				.globl	main
		main:
		.LFB185:
		.LVL0:
		 		link.w %fp,#-1280
		 		movem.l #15392,-(%sp)
    2   %routine do something(%string(255)%name fred)
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL1:
    3     fred = "Oh boy, this is fun!"
		 		move.l %fp,%d3
		.LVL5:
		 		add.l #-768,%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,%d5
		.LVL8:
		 		add.l #-512,%d5
		.LVL9:
		 		lea (32,%sp),%sp
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d5,-(%sp)
		 		jsr (%a2)
		.LVL10:
		.LBE24:
		 		move.l %d2,-(%sp)
		 		move.l %d5,-(%sp)
		 		move.l %d4,-(%sp)
		 		jsr (%a2)
		.LVL11:
		 		move.l %d2,-(%sp)
		 		pea -1024(%fp)
		 		move.l %d3,-(%sp)
		 		jsr (%a2)
		.LVL12:
		.LBE23:
		.LBE22:
		.LBB25:
		.LBB26:
		 		lea (-220,%sp),%sp
		 		move.l %sp,%d0
		 		move.l %d2,-(%sp)
		 		move.l %d3,-(%sp)
		 		move.l %d0,-(%sp)
		 		jsr (%a2)
		.LVL13:
		 		lea (12,%sp),%sp
		 		jsr _imp_printstring
		.LVL14:
		.LBE26:
		.LBE25:
		.LBB27:
		.LBB28:
		 		add.l %d2,%sp
		 		jsr _imp_newline
		.LVL15:
		.LBE28:
		.LBE27:
		.LBB29:
		.LBB30:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL16:
		.LBE30:
		.LBE29:
		.LFE185:
		.Letext0:
    4   %end
    5
    6   %string(255) jim = "Well, that was unexpected"
    7
    8   do something(jim)
    9
		 		pea 255.w
		 		pea -1280(%fp)
		 		move.l %fp,%d4
		.LVL2:
		 		add.l #-256,%d4
		.LVL3:
		 		move.l %d4,-(%sp)
		 		jsr _imp_strncpy
		.LVL4:
		.LBB22:
		.LBB23:
		.LBB24:
   10   printstring(jim); newline
   11
   12 %endofprogram
    9 Statements compiled
