         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2    %integer J
     3  
     4    ! test precedence handling.  This should translate as -1(1>>1) and output 0.
     5  
     6    J = -1 >> 1;
 0004 C7 45 F8 00 00 00 00                  MOV DWORD PTR [%EBP-8],#0
     7    write(J, 4)
 000B FF 75 F8                              PUSH DWORD PTR [%EBP-8]
 000E 6A 04                                 PUSH #4
 0010 E8 40 00                              CALL 'WRITE' (EXTERN 64)
 0013 83 C4 08                              ADD %ESP,#8
     8    newline
 0016 E8 43 00                              CALL 'NEWLINE' (EXTERN 67)
     9    ! imp2c currently not passing strings properly.  (It _was_ OK but broke.)
    10    !  printstring("Fail!") %and newline %if (J # 0)
    11  %endofprogram
 0019 C9                                    LEAVE
 001A C3                                    RET

     6 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/test94.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       11 |        4 |        8 |      31 |       0 |      32 |         63 |
 +----------+----------+----------+---------+---------+---------+------------+


