[BITS 16]
[section .text]

org 100h

jmp _main

global _main
global _gets
global _printf
global _scanf
global _fflush
global _getchar
global _putc
global _fopen
global _fprintf
global _fgetchar
global _fscanf
global _fgets
global _fseek
global _fread
global _fwrite
global _fclose

%include "io.asm"
%include "libc.asm"

struc __FILE
   ._fd resw 1
   ._track resw 1
   ._head resw 1
   ._sector resw 1
endstruc


[section .text]

%define _rc -2

_main:
	push bp
	mov bp,sp
	sub sp,word 2
	mov [bp+_rc],word 0
	push C1
	push C0
	call _printf
	add sp,word 4
	mov ax,word [bp+_rc]
	leave
	ret

%undef _rc



[section .data]
C0: db 'Hello, %s',10,13,0
C1: db 'Matthew W. Coan',0
[section .bss]
