diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-10-02 21:44:00 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-10-02 21:44:00 -0700 |
commit | 72677e475f8f292c4d2c83e7a6c9fccb66993dc9 (patch) | |
tree | 4b567de72cea6f883f02b92733420d94a1a8eec3 /parseconfig.inc | |
parent | f50f6ed18ba4aa2776b697581d0c3874c0335e0f (diff) | |
download | syslinux-72677e475f8f292c4d2c83e7a6c9fccb66993dc9.tar.gz |
New TEXT..ENDTEXT statement for the benefit of the menu system
Diffstat (limited to 'parseconfig.inc')
-rw-r--r-- | parseconfig.inc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/parseconfig.inc b/parseconfig.inc index aef31613..de64a18f 100644 --- a/parseconfig.inc +++ b/parseconfig.inc @@ -306,6 +306,31 @@ pc_say: call pc_getline ; "say" command jmp crlf ; tailcall ; +; "text" command; ignore everything until we get an "endtext" line +; +pc_text: call pc_getline ; Ignore rest of line +.loop: + call pc_getline +.skipspace: + lodsb + and al,al + jz .loop + cmp al,' ' + jbe .skipspace + + dec si + lodsd + and eax,0xfdfdfdfd + cmp eax,'ENDT' + jne .loop + lodsd + and eax,0x00fdfdfd + cmp eax,'EXT' + jne .loop + ; If we get here we hit ENDTEXT + ret + +; ; Comment line ; pc_comment: ; Fall into pc_getline |