// This may look like C code, but it is really -*- Asm -*-
/*
 *  smoke16/src16/stdio.s - Part of a sub-minimal SMOKE-16 I/O library.
 *  $Revision: 1.20 $
 *  Copyright 1997, 2000, Benjamin Sittler
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#include <smoke16/fcntl.h>

	.data
        .align 1
	/* FILE pointers */
	.global _stdin
_stdin:
	.word stdin
	.global _stdout
_stdout:
	.word stdout
	.global _stderr
_stderr:
	.word stderr

	/* the actual FILEs */
	.global __iob
__iob:
	// _iob[0]
stdin:	.word 0
	.word -1
	// _iob[1]
stdout:	.word 1
	.word -1
	// _iod[2]
stderr:	.word 2
	.word -1
	// _iob[3]
	.word -1
	.word -1
	// _iob[4]
	.word -1
	.word -1
	// _iob[5]
	.word -1
	.word -1
	// _iob[6]
	.word -1
	.word -1
	// _iob[7]
	.word -1
	.word -1
	// _iob[8]
	.word -1
	.word -1
	// _iob[9]
	.word -1
	.word -1
	// _iob[10]
	.word -1
	.word -1
	// _iob[11]
	.word -1
	.word -1
	// _iob[12]
	.word -1
	.word -1
	// _iob[13]
	.word -1
	.word -1
	// _iob[14]
	.word -1
	.word -1
	// _iob[15]
	.word -1
	.word -1
