dmi: check both the AC and ID flags at the same time
[syslinux.git] / core / writestr.c
blobfb9de348d0a01ef8bf6cf51621b56a7eb5512593
1 /*
2 * -----------------------------------------------------------------------
4 * Copyright 1994-2008 H. Peter Anvin - All Rights Reserved
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9 * Boston MA 02111-1307, USA; either version 2 of the License, or
10 * (at your option) any later version; incorporated herein by reference.
12 * -----------------------------------------------------------------------
15 * writestr.c
17 * Code to write a simple string.
19 #include <com32.h>
20 #include <core.h>
23 * crlf: Print a newline
25 void crlf(void)
27 writechr('\r');
28 writechr('\n');
32 * writestr: write a null-terminated string to the console, saving
33 * registers on entry.
35 * Note: writestr_early and writestr are distinct in
36 * SYSLINUX and EXTLINUX, but not PXELINUX and ISOLINUX
38 void writestr(char *str)
40 while (*str)
41 writechr(*str++);
44 void pm_writestr(com32sys_t *regs)
46 writestr(MK_PTR(regs->ds, regs->esi.w[0]));