         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2    %integer i
     3    %integerarray ia1(3:5)
 0004 C7 45 E8 01 00 00 00                  MOV DWORD PTR [%EBP-24],#1
 000B C7 45 EC 03 00 00 00                  MOV DWORD PTR [%EBP-20],#3
 0012 C7 45 F0 05 00 00 00                  MOV DWORD PTR [%EBP-16],#5
 0019 C7 45 F4 83 00 00 00                  MOV DWORD PTR [%EBP-12],#131
 0020 8D 45 E8                              LEA %EAX,[%EBP-24]
 0023 50                                    PUSH %EAX
 0024 E8 0A 00                              CALL '_IMPADEF' (EXTERN 10)
 0027 83 C4 04                              ADD %ESP,#4
 002A 8D 4D E8                              LEA %ECX,[%EBP-24]
 002D 89 E3                                 MOV %EBX,%ESP
 002F 29 D3                                 SUB %EBX,%EDX
 0031 89 5D E0                              MOV [%EBP-32],%EBX
 0034 89 4D E4                              MOV [%EBP-28],%ECX
 0037 01 C3                                 ADD %EBX,%EAX
 0039 89 DC                                 MOV %ESP,%EBX
     4    %integerarray ia2(2:4,3:6)
 003B C7 45 C8 02 00 00 00                  MOV DWORD PTR [%EBP-56],#2
 0042 C7 45 CC 02 00 00 00                  MOV DWORD PTR [%EBP-52],#2
 0049 C7 45 D0 04 00 00 00                  MOV DWORD PTR [%EBP-48],#4
 0050 C7 45 D4 03 00 00 00                  MOV DWORD PTR [%EBP-44],#3
 0057 C7 45 D8 06 00 00 00                  MOV DWORD PTR [%EBP-40],#6
 005E C7 45 DC 83 00 00 00                  MOV DWORD PTR [%EBP-36],#131
 0065 8D 45 C8                              LEA %EAX,[%EBP-56]
 0068 50                                    PUSH %EAX
 0069 E8 0A 00                              CALL '_IMPADEF' (EXTERN 10)
 006C 83 C4 04                              ADD %ESP,#4
 006F 8D 4D C8                              LEA %ECX,[%EBP-56]
 0072 89 E3                                 MOV %EBX,%ESP
 0074 29 D3                                 SUB %EBX,%EDX
 0076 89 5D C0                              MOV [%EBP-64],%EBX
 0079 89 4D C4                              MOV [%EBP-60],%ECX
 007C 01 C3                                 ADD %EBX,%EAX
 007E 89 DC                                 MOV %ESP,%EBX
     5  
     6    ia1(3) = i
 0080 6A 03                                 PUSH #3
 0082 FF 75 E4                              PUSH DWORD PTR [%EBP-28]
 0085 E8 09 00                              CALL '_IMPAREF' (EXTERN 9)
 0088 83 C4 08                              ADD %ESP,#8
 008B 89 C6                                 MOV %ESI,%EAX
 008D 03 75 E0                              ADD %ESI,[%EBP-32]
 0090 8B 45 F8                              MOV %EAX,[%EBP-8]
 0093 89 06                                 MOV [%ESI],%EAX
     7    i = ia1(3)
 0095 6A 03                                 PUSH #3
 0097 FF 75 E4                              PUSH DWORD PTR [%EBP-28]
 009A E8 09 00                              CALL '_IMPAREF' (EXTERN 9)
 009D 83 C4 08                              ADD %ESP,#8
 00A0 89 C7                                 MOV %EDI,%EAX
 00A2 03 7D E0                              ADD %EDI,[%EBP-32]
 00A5 8B 3F                                 MOV %EDI,[%EDI]
 00A7 89 7D F8                              MOV [%EBP-8],%EDI
     8  
     9    ia2(2,3) = i
 00AA 6A 02                                 PUSH #2
 00AC 6A 03                                 PUSH #3
 00AE FF 75 C4                              PUSH DWORD PTR [%EBP-60]
 00B1 E8 09 00                              CALL '_IMPAREF' (EXTERN 9)
 00B4 83 C4 0C                              ADD %ESP,#12
 00B7 89 C3                                 MOV %EBX,%EAX
 00B9 03 5D C0                              ADD %EBX,[%EBP-64]
 00BC 8B 45 F8                              MOV %EAX,[%EBP-8]
 00BF 89 03                                 MOV [%EBX],%EAX
    10    i = ia2(2,3)
 00C1 6A 02                                 PUSH #2
 00C3 6A 03                                 PUSH #3
 00C5 FF 75 C4                              PUSH DWORD PTR [%EBP-60]
 00C8 E8 09 00                              CALL '_IMPAREF' (EXTERN 9)
 00CB 83 C4 0C                              ADD %ESP,#12
 00CE 89 C6                                 MOV %ESI,%EAX
 00D0 03 75 C0                              ADD %ESI,[%EBP-64]
 00D3 8B 36                                 MOV %ESI,[%ESI]
 00D5 89 75 F8                              MOV [%EBP-8],%ESI
    11  
    12  %endofprogram
 00D8 C9                                    LEAVE
 00D9 C3                                    RET

     9 Statements compiled



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


