Annotation of os2sdk/startup/os2/crt0msg.asm, revision 1.1

1.1     ! root        1:        TITLE   crt0msg - OS/2 startup messages
        !             2: ;***
        !             3: ;5crt0msg.asm - OS/2 startup error messages
        !             4: ;
        !             5: ;      Copyright (c) 1986-1987, Microsoft Corporation
        !             6: ;
        !             7: ;Purpose:
        !             8: ;      Core collection of error messages contained in programs
        !             9: ;      which use the C startup code.
        !            10: ;
        !            11: ;*******************************************************************************
        !            12: 
        !            13: 
        !            14: ?DF=   1                       ; this is special for c startup
        !            15: include        version.inc
        !            16: .xlist
        !            17: include        cmacros.inc
        !            18: .list
        !            19: 
        !            20: createSeg HDR, nhdr,   byte,   public, MSG,    DGROUP
        !            21: createSeg MSG, nmsg,   byte,   public, MSG,    DGROUP
        !            22: createSeg PAD, npad,   byte,   common, MSG,    DGROUP
        !            23: createSeg EPAD,        nepad,  byte,   common, MSG,    DGROUP
        !            24: 
        !            25: createSeg _TEXT, code, word,   public, CODE,   <>
        !            26: createSeg _DATA, data, word,   public, DATA,   DGROUP
        !            27: 
        !            28: defGrp DGROUP                  ; define DGROUP
        !            29: 
        !            30: 
        !            31: public __acrtmsg
        !            32: __acrtmsg= 9876h
        !            33: 
        !            34: ;      Messages used by crt0.asm
        !            35: 
        !            36: sBegin nmsg
        !            37: assumes        ds,data
        !            38:        dw      0
        !            39:        db      'R6000',13,10,'- stack overflow',13,10,0
        !            40:        dw      3
        !            41:        db      'R6003',13,10,'- integer divide by 0',13,10,0
        !            42:        dw      8
        !            43:        db      'R6008',13,10,'- not enough space for arguments',13,10,0
        !            44:        dw      9
        !            45:        db      'R6009',13,10,'- not enough space for environment',13,10,0
        !            46: IFDEF  FORTRAN
        !            47:        dw      252
        !            48:        db      13,10,0
        !            49:        dw      255
        !            50:        db      'run-time error ',0
        !            51: ELSE
        !            52:        dw      255
        !            53:        db      13,10,'run-time error ',0
        !            54: ENDIF
        !            55: sEnd   nmsg
        !            56: 
        !            57: sBegin npad
        !            58: assumes        ds,data
        !            59:        dw      -1
        !            60: ; no padding for now;
        !            61: ; MAX padding would be
        !            62: ;      db      113 dup(0)
        !            63: sEnd
        !            64: 
        !            65: externP        _NMSG_WRITE
        !            66: 
        !            67: IFDEF  FORTRAN
        !            68:        externNP _FF_DBGMSG
        !            69: ENDIF
        !            70: 
        !            71: sBegin code
        !            72:        assumes cs,code
        !            73:        assumes ds,data
        !            74: 
        !            75: page
        !            76: ;***
        !            77: ;_FF_MSGBANNER() - What does this do?
        !            78: ;
        !            79: ;Purpose:
        !            80: ;   UNDONE: What does this routine do?
        !            81: ;
        !            82: ;Entry:
        !            83: ;
        !            84: ;Exit:
        !            85: ;
        !            86: ;Uses:
        !            87: ;
        !            88: ;Exceptions:
        !            89: ;
        !            90: ;*******************************************************************************
        !            91: cProc  _FF_MSGBANNER,<PUBLIC>,<>
        !            92: cBegin
        !            93: IFDEF  FORTRAN
        !            94:        mov     ax,252          ; "\r\n" to begin error message
        !            95:                                ; contained in message 255 for C
        !            96:        push    ax
        !            97:        call    _NMSG_WRITE
        !            98: 
        !            99:        call    _FF_DBGMSG      ; not needed for C-only version
        !           100: ENDIF
        !           101:        mov     ax,255          ; run-time error message banner
        !           102:        push    ax
        !           103:        call    _NMSG_WRITE
        !           104: cEnd
        !           105: 
        !           106: sEnd   code
        !           107: 
        !           108:        end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.