Displaying 4 results from an estimated 4 matches for "configbuf".
2009 Apr 09
0
[PATCH] gfxboot: parse DEFAULT keywork in syslinux config file
...menu_default],0
- mov [menu_desc+menu_default+2],di
+ mov word [menu_desc+menu_default],dentry_buf
+ mov [menu_desc+menu_default+2],cs
mov di,256
mov [menu_desc+menu_arg_list],di
@@ -699,6 +699,17 @@ parse_config:
pop si
jz .do_label
+ push si
+ push di
+ xor ecx,ecx
+ mov si,configbuf
+ mov di,default_keyword+1
+ mov cl, byte [default_keyword]
+ call memcmp
+ pop di
+ pop si
+ jz .do_default
+
.nextline:
call skipline
jmp .read
@@ -723,6 +734,22 @@ parse_config:
jmp .read
+.do_default:
+ call skipspace
+ jz .eof
+ jc .noparm
+ call ungetc
+ push es
+ pu...
2009 Jul 13
0
[PATCH] gfxboot: change handling of keywords
...3.82-440-g6483c80.orig/modules/gfxboot.asm
+++ syslinux-3.82-440-g6483c80/modules/gfxboot.asm
@@ -699,33 +699,39 @@ parse_config:
mov bx, msg_crlf
int 22h
%endif
+ mov bx,keywords
+ mov cx,[keyword_cnt]
+.keywords_loop:
+ push cx
push si
push di
- xor ecx,ecx
+ xor cx,cx
mov si,configbuf
- mov di,label_keyword+1
- mov cl, byte [label_keyword]
+ mov di,[bx]
+ mov cl,byte [di]
+ inc di
call memcmp
pop di
pop si
- jz .do_label
+ jnz .not_found
+ pop cx
+ call [bx+2] ; call keyword handler
+ jmp .read
- push si
- push di
- xor ecx,ecx
- mov si,configbuf
- mov...
2009 Apr 05
3
[PATCH] Gfxboot COMBOOT module
...+ mov [f_handle],si
+ push es
+ mov ax,cs
+ add ax,1000h
+ mov es,ax
+ mov word [menu_seg],ax
+ xor eax,eax
+ mov cx,4000h
+ mov di,0
+ rep stosd
+ pop es
+.read:
+ call skipspace
+ jz .eof
+ jc .read
+ cmp al,'#'
+ je .nextline
+ or al,20h ; convert to lower case
+ mov di,configbuf
+ stosb
+.read_loop:
+ call getc
+ jc .eof
+ cmp al,' '
+ jbe .done
+ or al,20h ; convert to lower case
+ stosb
+ jmp .read_loop
+.done:
+ call ungetc
+
+ xor ax,ax
+ stosb
+%ifdef DEBUG
+ mov ax,2
+ mov bx, configbuf
+ int 22h
+
+ mov ax,2
+ mov bx, msg_crlf
+ int 22h
+%en...
2008 Nov 22
5
[RFC][PATCH] Gfxboot COMBOOT module
...+ mov [f_handle],si
+ push es
+ mov ax,cs
+ add ax,1000h
+ mov es,ax
+ mov word [menu_seg],ax
+ xor eax,eax
+ mov cx,4000h
+ mov di,0
+ rep stosd
+ pop es
+.read:
+ call skipspace
+ jz .eof
+ jc .read
+ cmp al,'#'
+ je .nextline
+ or al,20h ; convert to lower case
+ mov di,configbuf
+ stosb
+.read_loop:
+ call getc
+ jc .eof
+ cmp al,' '
+ jbe .done
+ or al,20h ; convert to lower case
+ stosb
+ jmp .read_loop
+.done:
+ call ungetc
+
+ xor ax,ax
+ stosb
+%ifdef DEBUG
+ mov ax,2
+ mov bx, configbuf
+ int 22h
+
+ mov ax,2
+ mov bx, msg_crlf
+ int 22h
+%en...