NT4/private/crt32/lowio/ppc/cinitcon.s
2020-09-30 17:12:29 +02:00

54 lines
1.3 KiB
ArmAsm

// page ,132
// title cinitcon - C Run-Time Startup Initialization for Console I/O
//
//cinitcon.asm - C Run-Time Startup Initialization for WIN32
//
// Copyright (c) 1990-1992, Microsoft Corporation. All rights reserved.
//
//Purpose:
// Initialization and Termination for console I/O
//
//Notes:
// _confh and _coninpfh are defined in this module to force the
// inclusion of this module if any console I/O is performed.
// This module places the address of _initcon() in the initializer
// table and the address of _termcon() in the pre-terminator table.
//
//Revision History:
// 03-19-92 SKS Module created.
// 03-24-92 SKS Added MIPS support (NO_UNDERSCORE)
// 04-30-92 SKS Add "offset FLAT:" to get correct fixups for OMF objs
// 08-06-92 SKS Revised to use new section names and macros
//
// ****************************************************************************
#include "kxppc.h"
.extern _initcon
.extern _termcon
beginSection(XIC)
.long _initcon
endSection(XIC)
beginSection(XPX)
.long _termcon
endSection(XPX)
.data
.align 2
.globl _coninpfh
.globl _confh
_coninpfh: .long -1 // console input
_confh: .long -1 // console output