         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2    %routine test(%integer p, %integername q)
 0004 EB 00                                 JMP L1001
 0006                      L1002  EQU $
 0006 C8 00 00 02                           ENTER 0000,2
     3      p = 1
 000A C7 45 0C 01 00 00 00                  MOV DWORD PTR [%EBP+12],#1
     4      q = 1
 0011 8B 75 08                              MOV %ESI,[%EBP+8]
 0014 C7 06 01 00 00 00                     MOV DWORD PTR [%ESI],#1
     5    %end
 001A C9                                    LEAVE
 001B C3                                    RET
 001C                      L1001  EQU $
     6    %integername j, k
     7    %integer x, y
     8    j == x
 001C 8D 45 F0                              LEA %EAX,[%EBP-16]
 001F 89 45 F8                              MOV [%EBP-8],%EAX
     9    k == y
 0022 8D 45 EC                              LEA %EAX,[%EBP-20]
 0025 89 45 F4                              MOV [%EBP-12],%EAX
    10    
    11    test(x, y)
 0028 FF 75 F0                              PUSH DWORD PTR [%EBP-16]
 002B 8D 45 EC                              LEA %EAX,[%EBP-20]
 002E 50                                    PUSH %EAX
 002F E8 00 00                              CALL 'TEST' (INTERNAL L1002 )
 0032 83 C4 08                              ADD %ESP,#8
    12    test(j, k)
 0035 8B 7D F8                              MOV %EDI,[%EBP-8]
 0038 FF 37                                 PUSH DWORD PTR [%EDI]
 003A FF 75 F4                              PUSH DWORD PTR [%EBP-12]
 003D E8 00 00                              CALL 'TEST' (INTERNAL L1002 )
 0040 83 C4 08                              ADD %ESP,#8
    13    
    14  %endofprogram
 0043 C9                                    LEAVE
 0044 C3                                    RET

    12 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/test85.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       11 |        5 |        6 |      73 |       0 |      64 |        137 |
 +----------+----------+----------+---------+---------+---------+------------+


