Displaying 5 results from an estimated 5 matches for "label_cnt".
2009 Apr 05
3
[PATCH] Gfxboot COMBOOT module
...mov word [menu_desc+menu_ent_list],0
+ mov di,[menu_seg]
+ mov [menu_desc+menu_ent_list+2],di
+
+ mov word [menu_desc+menu_default],0
+ mov [menu_desc+menu_default+2],di
+
+ mov di,256
+ mov [menu_desc+menu_arg_list],di
+ mov di,[menu_seg]
+ mov [menu_desc+menu_arg_list+2],di
+
+ mov cx,[label_cnt]
+ mov [menu_desc+menu_entries],cx
+
+ mov cx,256*2
+ mov [menu_desc+menu_ent_size],cx
+ mov [menu_desc+menu_arg_size],cx
+
+ mov esi,ds
+ shl esi,4
+ add esi,menu_desc
+
+ call far [gfx_bc_menu_init]
+ pop es
+ ret
+
+magic_ok:
+ xor eax,eax
+ cmp dword [es:bx],0b2d97f00h ; header.m...
2008 Nov 22
5
[RFC][PATCH] Gfxboot COMBOOT module
...mov word [menu_desc+menu_ent_list],0
+ mov di,[menu_seg]
+ mov [menu_desc+menu_ent_list+2],di
+
+ mov word [menu_desc+menu_default],0
+ mov [menu_desc+menu_default+2],di
+
+ mov di,256
+ mov [menu_desc+menu_arg_list],di
+ mov di,[menu_seg]
+ mov [menu_desc+menu_arg_list+2],di
+
+ mov cx,[label_cnt]
+ mov [menu_desc+menu_entries],cx
+
+ mov cx,256*2
+ mov [menu_desc+menu_ent_size],cx
+ mov [menu_desc+menu_arg_size],cx
+
+ mov esi,ds
+ shl esi,4
+ add esi,menu_desc
+
+ call far [gfx_bc_menu_init]
+ pop es
+ ret
+
+magic_ok:
+ xor eax,eax
+ cmp dword [es:bx],0b2d97f00h ; header.m...
2009 Apr 09
0
[PATCH] gfxboot: parse DEFAULT keywork in syslinux config file
...pop es
+ mov di,dentry_buf
+ call getline
+ pop di
+ pop es
+
+ jmp .read
+
.eof:
.noparm:
ret
@@ -854,6 +881,7 @@ configbuf times trackbufsize db 0
ungetc_cnt db 0
ungetcdata db 0
label_keyword db 6,''label'',0
+default_keyword db 7,''default'',0
label_cnt dw 0
msg_progname db ''gfxboot: '',0
@@ -875,6 +903,8 @@ gfx_slash db ''/'', 0
db0 db 0
max_cmd_len equ 2047
command_line times max_cmd_len+2 db 0
+dentry_buf times 512 db 0
+dentry_buf_len equ $ - dentry_buf
; menu entry descriptor
menu_entries e...
2009 Jul 13
0
[PATCH] gfxboot: change handling of keywords
...pop di
- pop si
- jz .do_default
+.not_found:
+ add bx,4
+ pop cx
+ loop .keywords_loop
.nextline:
call skipline
jmp .read
-.do_label:
+.eof:
+.noparm:
+ ret
+
+do_label:
call skipspace
jz .eof
jc .noparm
@@ -742,10 +748,11 @@ parse_config:
pop di
pop es
inc word [label_cnt]
+.eof:
+.noparm:
+ ret
- jmp .read
-
-.do_default:
+do_default:
call skipspace
jz .eof
jc .noparm
@@ -759,8 +766,6 @@ parse_config:
pop di
pop es
- jmp .read
-
.eof:
.noparm:
ret
@@ -877,9 +882,6 @@ memcmp:
ret
section .data
-label_keyword db 6,'label',0...
2009 Jul 15
0
[PATCH] gfxboot: only call gfxboot core if labels are specified
...40-g6483c80/modules/gfxboot.asm
===================================================================
--- syslinux-3.82-440-g6483c80.orig/modules/gfxboot.asm
+++ syslinux-3.82-440-g6483c80/modules/gfxboot.asm
@@ -144,7 +144,15 @@ got_config_file:
push cs
pop es
call parse_config
+ cmp word [label_cnt],0
+ ja labels_defined
+ mov bx,msg_no_labels_defined
+ mov ax,2
+ int 22h
+ ret
+
+labels_defined:
; get_gfx_file
mov ax,cs
add ax,2000h
@@ -899,6 +907,7 @@ msg_bootlogo_toobig db 'bootlogo file to
msg_pxelinux db 'pxelinux is not supported',0dh,0ah,0
msg_unknown_file_...