         Edinburgh IMP77 Compiler - Version 8.4
    1 %begin
				.section	".text"
		.Ltext0:
				.align 4
				.global main
				.proc	04
		main:
		.LFB185:
				.register	%g7, #ignore
		.LVL0:
				save	%sp, -960, %sp
		.LVL1:
				ldx	[%g7+40], %g1
				stx	%g1, [%fp+2039]
				mov	0, %g1
    2   %integer inum
				mov	%i1, %o1
				call	_imp_initialise, 0
				 mov	%i0, %o0
		.LVL2:
    3   %real rnum
    4   %string (255) str = "improperly initialised?"
    5
    6   inum = 0123
    7   inum = 123
				mov	255, %o2
				add	%fp, 1527, %o1
				call	_imp_strncpy, 0
				 add	%fp, 1271, %o0
		.LVL3:
    8   inum = X'AA'
    9   inum = X'aa'
   10   inum = K'77'
   11   inum = B'1101'
   12   inum = 10_0123
   13   inum = 16_aa
   14   inum = 16_AA
   15   inum = M'FRED'
   16   inum = M'fred'
   17   !! NOT IMP77: inum = 'FRED'
   18   !! NOT IMP77: inum = 'fred'
   19   inum = 8_77
   20   inum = 2_1101
   21
   22   rnum = 0123
   23   rnum = 0123.234
   24   rnum = 0123.0234
   25   rnum = 0123.4@2
   26   rnum = 0123.4@-2
   27   rnum = 0123@2
   28   rnum = 0123@+2
   29   rnum = 0123@-2
   30   rnum = 123
   31   rnum = .234
   32   rnum = .234@3
   33   rnum = 0123.
   34   rnum = 0123.@4
   35   rnum = 0.@3
   36   !rnum = 0.@      ;! rejected forms:
   37   !rnum = .@3
   38
   39   str = "improperly assigned?"
   40   !! NOT IMP77: str = 'ditto, old style'
   41
				mov	255, %o2
				add	%fp, 1783, %o1
				call	_imp_strncpy, 0
				 add	%fp, 1271, %o0
		.LVL4:
		.LBB8:
		.LBB9:
				call	exit, 0
				 mov	0, %o0
		.LVL5:
		.LBE9:
		.LBE8:
				nop
		.LFE185:
		.Letext0:
   42 %endofprogram
   33 Statements compiled
