;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%  Copyright (C) 1988-2000 by Sybase, Inc. All                 %
;%  rights reserved. No part of this software may be reproduced %
;%  in any form or by any means - graphic, electronic or        %
;%  mechanical, including photocopying, recording, taping       %
;%  or information storage and retrieval systems - except       %
;%  with the written permission of Sybase, Inc.                 %
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;
; startup code for WATCOM C/C++32 under OS/2
;
;       This must be assembled using one of the following commands:
;               wasm cstrto32 -bt=OS2 -ms -3r
;               wasm cstrto32 -bt=OS2 -ms -3s
;
        name    cstart
.386p
        assume  nothing

        extrn   __OS2Main       : near
        extrn   ___begtext      : near

_TEXT   segment use32 word public 'CODE'

        public  _cstart_

        assume  cs:_TEXT

_cstart_ proc near
        jmp     __OS2Main
        dd      ___begtext      ; reference module with segment definitions
;
; copyright message
;
        db      "WATCOM C/C++32 Run-Time system. "
        db      "(c) Copyright by Sybase, Inc. 1988-2000."
        db      " All rights reserved."
_cstart_ endp

_TEXT   ends

        end     _cstart_
