Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Object listing

&pagelevel(4)&pagelevel

The object listing is requested with the ASSEMBLER-CODE option of the MODIFY-LISTING-PROPERTIES statement.

It contains

  • the hexadecimal representation of object code generated by the code generator,

  • the object code in Assembler notation,

  • comments concerning the object code in Assembler notation,

  • the source program lines in C/C++ notation as comments.

The overall listing is arranged into separate sections for code and data modules. Each module listing is divided into areas. The beginning of a given module or area listing is indicated by comment lines in the Assembler source program.

***** ASSEMBLER - LISTING *****    BS2000 C/C++ COMPILER 04.0B02    DATE:2023-04-02 PAGE: 1
                           SOURCENAME:*BS2000(MAINPROG)             TIME=17:37:22 
__________________________________________________________________________________________
                            1   ******************************
                            2   *        CODE MODULE
                            3   *
                            4   *        OPTIMIZER:     ON
                            5   *        SHARED CODE:   OFF
                            6   *        OBJECT FORMAT: LLM
                            7   ******************************
 000000                     8   MAINPROG\&@ CSECT       READ
 000000                     9   MAINPROG\&@ AMODE       ANY
 000000                    10   MAINPROG\&@ RMODE       ANY
                           11   ******************************
                           12   *        CODE AREA (main)
                           13   ******************************
 000000                    14            ENTRY  MAIN
 000000                    15   MAIN     DS     0A
 000000                    16            USING  *,15
 000000  90 EF D00C        17            STM    14,15,12(13)
 000004  90 2C D01C        18            STM    2,12,28(13)
 000008  58 90 D04C        19            L      9,76(0,13)
 00000C  98 AB F068        20            LM     10,11,#DC#CONT#10       104(15) 
 000010  58 E0 9018        21            L      14,24(0,9)
 000014  41 00 E0D8        22            LA     0,216(0,14)
 000018  55 00 9010        23            CL     0,16(0,9)
 00001C  47 20 F044        24            BC     2,#OFLOW#10     68(0,15)
 000020  50 00 9018        25            ST     0,24(0,9)
 000000  00 00             26   #OFLOWOK#10 EQU *
 000024  50 E0 900C        27            ST     14,12(0,9)
 000028  58 00 F088        28            L      0,#DC#SAVID#10  136(0,15)
 00002C  50 00 E000        29            ST     0,0(0,14)
 000030  58 00 F08C        30            L      0,#DC#EHL#10    140(0,15)
 000034  50 00 E050        31            ST     0,80(0,14)
 000038  50 D0 E004        32            ST     13,4(0,14)
 00003C  50 90 E04C        33            ST     9,76(0,14)
 000040  18 DE             34            LR     13,14
 000042  07 FA             35            BCR    15,10
                            .
                            .
                            .
 000094  58 80 F084        69            L      8,132(0,15)
                           70   *****    LINE   7: (*BS2000(:2OSC:$TST30B.MAINPROG))
                           71   *****      int main(void)
 000098                    72   @0000001 DS     0H
                           73   *****    LINE   8
                           74   *****    {
 000098                    75   @0000002 DS     0H
 000098  58 F0 B024        76            L      15,36(0,11)     <17>    <17>
 00009C  41 00 0000        77            LA     0,0(0,0)
 0000A0  0D EF             78            BASR   14,15
                           79   *****    LINE   16
                           80   *****      printf("%d\n", ii);
   |     |        |         |   |                            | |            |
   |     |________|         |   |____________________________| |____________|
   |         |              |                  |                      |
  (1)       (2)            (3)                (4)                    (5)

Explanation

(1)

Location counter, in hexadecimal notation

(2)

Object code, in hexadecimal notation

(3)

Line number of the Assembler code

(4)

Assembler code (symbolic address, Assembler mnemonics, operands) and source program line as a comment

(5)

Explanation of the Assembler code