Across-the-board stealth whitespace cleanup
[profile/ivi/syslinux.git] / cmdline.inc
1 ;; $Id$
2 ;; -----------------------------------------------------------------------
3 ;;
4 ;;   Copyright 2003 H. Peter Anvin - All Rights Reserved
5 ;;
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.
11 ;;
12 ;; -----------------------------------------------------------------------
13
14 ;;
15 ;; cmdline.inc
16 ;;
17 ;; Common routine to assemble [null-terminated] command line into
18 ;; real_mode_seg:cmd_line_here.
19 ;; Not used by plain kernel due to BOOT_IMAGE= etc.
20 ;;
21
22 ;
23 ; Assumes DS == CS
24 make_plain_cmdline:
25                 push es
26                 ; ui.inc has already copied any APPEND options
27                 mov ax,real_mode_seg
28                 mov es,ax
29
30                 mov si,[CmdOptPtr]
31                 mov di,[CmdLinePtr]
32
33                 call strcpy
34
35                 dec di
36                 mov [CmdLinePtr],di
37
38                 pop es
39                 ret