         Edinburgh IMP77 Compiler - Version 8.4-2024.12.18

     1  %begin
 0000 C8 00 00 01                           ENTER 0000,1
     2    open output(1, "test.zzz")
 0004 6A 01                                 PUSH #1
 0006 81 EC 00 01 00 00                     SUB %ESP,#256
 000C 89 E0                                 MOV %EAX,%ESP
 000E 50                                    PUSH %EAX
 000F B8 00 00 00 00                        MOV %EAX,COT+#0
 0014 50                                    PUSH %EAX
 0015 68 FF 00 00 00                        PUSH #255
 001A E8 03 00                              CALL '_IMPSTRCPY' (EXTERN 3)
 001D 83 C4 0C                              ADD %ESP,#12
 0020 E8 2E 00                              CALL 'OPENOUTPUT' (EXTERN 46)
 0023 81 C4 04 01 00 00                     ADD %ESP,#260
     3    select output(1)
 0029 6A 01                                 PUSH #1
 002B E8 2D 00                              CALL 'SELECTOUTPUT' (EXTERN 45)
 002E 83 C4 04                              ADD %ESP,#4
     4    printstring("Hello World"); newline
 0031 81 EC 00 01 00 00                     SUB %ESP,#256
 0037 89 E0                                 MOV %EAX,%ESP
 0039 50                                    PUSH %EAX
 003A B8 09 00 00 00                        MOV %EAX,COT+#9
 003F 50                                    PUSH %EAX
 0040 68 FF 00 00 00                        PUSH #255
 0045 E8 03 00                              CALL '_IMPSTRCPY' (EXTERN 3)
 0048 83 C4 0C                              ADD %ESP,#12
 004B E8 3B 00                              CALL 'PRINTSTRING' (EXTERN 59)
 004E 81 C4 00 01 00 00                     ADD %ESP,#256
 0054 E8 43 00                              CALL 'NEWLINE' (EXTERN 67)
     5  %endofprogram
 0057 C9                                    LEAVE
 0058 C3                                    RET

     6 Statements compiled



 ELF object file generated from IMP source file: '/home/gtoal/src/compilers101/new-parser/imps/tests/debug.imp'
 +----------+---------------------+---------+---------+---------+------------+
 | Sections |       Symbols       | Code    | Data    | Diag    | Total size |
 +----------+----------+----------+---------+---------+---------+------------+
 |  (count) | Internal | External | (bytes) | (bytes) | (bytes) | (bytes)    |
 +----------+----------+----------+---------+---------+---------+------------+
 |       12 |        5 |       11 |     101 |      22 |      32 |        155 |
 +----------+----------+----------+---------+---------+---------+------------+


