         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2    %integermap wurd(%integer ad)
 0004 EB 00                                 JMP L1001
 0006                      L1002  EQU $
 0006 C8 00 00 02                           ENTER 0000,2
     3      %result == integer(ad)
 000A 8B 45 08                              MOV %EAX,[%EBP+8]
 000D C9                                    LEAVE
 000E C3                                    RET
     4    %end
 000F                      L1001  EQU $
     5    %integername i,j
     6    i == integer(16_8000)
 000F B8 00 80 00 00                        MOV %EAX,#32768
 0014 89 45 F8                              MOV [%EBP-8],%EAX
     7    j == wurd(16_8000)
 0017 68 00 80 00 00                        PUSH #32768
 001C E8 00 00                              CALL 'WURD' (INTERNAL L1002 )
 001F 83 C4 04                              ADD %ESP,#4
 0022 89 45 F4                              MOV [%EBP-12],%EAX
     8    i=1
 0025 8B 75 F8                              MOV %ESI,[%EBP-8]
 0028 C7 06 01 00 00 00                     MOV DWORD PTR [%ESI],#1
     9    j=1
 002E 8B 7D F4                              MOV %EDI,[%EBP-12]
 0031 C7 07 01 00 00 00                     MOV DWORD PTR [%EDI],#1
    10  fred:
 0037                      L1003  EQU $
    11    i == integer(16_8001)
 0037 B8 01 80 00 00                        MOV %EAX,#32769
 003C 89 45 F8                              MOV [%EBP-8],%EAX
    12    j == integer(16_8001)
 003F B8 01 80 00 00                        MOV %EAX,#32769
 0044 89 45 F4                              MOV [%EBP-12],%EAX
    13    i=1
 0047 8B 5D F8                              MOV %EBX,[%EBP-8]
 004A C7 03 01 00 00 00                     MOV DWORD PTR [%EBX],#1
    14    j=1
 0050 8B 75 F4                              MOV %ESI,[%EBP-12]
 0053 C7 06 01 00 00 00                     MOV DWORD PTR [%ESI],#1
    15  %endofprogram
 0059 C9                                    LEAVE
 005A C3                                    RET
?FRED unused

    14 Statements compiled



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


