         Edinburgh IMP77 Compiler - Version 8.4
    1 ! A test of dynamic loading!  (not yet implemented.  See dltest.c for the mechanism.)
				NO_APP
		.Ltext0:
				.align	2
				.globl	main
		main:
		.LFB185:
    2 %begin
		.LVL0:
		 		link.w %fp,#-512
		 		move.l %a2,-(%sp)
    3   %dynamic %routine %spec system(%longinteger pointer64)
		 		move.l 12(%fp),-(%sp)
		 		move.l 8(%fp),-(%sp)
		 		jsr _imp_initialise
		.LVL1:
    4   ! By making this dynamic, it is linked *at run time*
    5
    6   %string (255) command = "/bin/ls -la"
    7
    8   charno(command, length(command)+1) = 0
		 		clr.l %d0
		 		move.b -256(%fp),%d0
		 		clr.b -255(%fp,%d0.l)
		 		pea 1(%a2)
		 		jsr SYSTEM
		.LVL3:
		.LBB12:
		.LBB13:
		 		clr.l -(%sp)
		 		jsr exit
		.LVL4:
		.LBE13:
		.LBE12:
		.LFE185:
		.Letext0:
    9   system(ADDR(command)+1)
		 		pea 255.w
		 		pea -512(%fp)
		 		lea (-256,%fp),%a2
		 		move.l %a2,-(%sp)
		 		jsr _imp_strncpy
		.LVL2:
   10
   11 %endofprogram
    6 Statements compiled
