search for: gfx_file_read

Displaying 3 results from an estimated 3 matches for "gfx_file_read".

2009 Jul 15
0
[PATCH] gfxboot: display error message if bootlogo file not found
...: syslinux-3.82-440-g6483c80/modules/gfxboot.asm =================================================================== --- syslinux-3.82-440-g6483c80.orig/modules/gfxboot.asm +++ syslinux-3.82-440-g6483c80/modules/gfxboot.asm @@ -417,6 +417,14 @@ gfx_read_file: mov si,pspCmdArg+1 int 22h jnc gfx_file_read + + mov ax,2 + mov bx,pspCmdArg+1 + int 22h + + mov ax,2 + mov bx,msg_not_found + int 22h stc ret @@ -890,6 +898,7 @@ msg_memory db 'Could not detect availab msg_bootlogo_toobig db 'bootlogo file too big',0dh,0ah,0 msg_pxelinux db 'pxelinux is not supported',0d...
2008 Nov 22
5
[RFC][PATCH] Gfxboot COMBOOT module
...+ mov [gfx_bc_menu_init],ax + mov [gfx_bc_menu_init+2],es + +; ... + + mov esi,cs + shl esi,4 + add esi,gfx_sysconfig + call far [gfx_bc_init] + +gfx_init_end: + ret + +gfx_read_file: +; open file +; es:si - file name + + push cs + pop es + mov ax,6 + mov si,pspCmdArg+1 + int 22h + jnc gfx_file_read + stc + ret + +gfx_file_read: +; si - file handle +; eax - length of file in bytes, or -1 +; cx - file block size + + mov [file_length],eax + mov edx,eax + mov [gfx_archive_end],edx + mov edi, [gfx_mem] + mov eax,[gfx_mem0_start] + lea eax,[eax+edx+0fh] + cmp eax,[gfx_mem0_end] + jbe read...
2009 Apr 05
3
[PATCH] Gfxboot COMBOOT module
...+ mov [gfx_bc_menu_init],ax + mov [gfx_bc_menu_init+2],es + +; ... + + mov esi,cs + shl esi,4 + add esi,gfx_sysconfig + call far [gfx_bc_init] + +gfx_init_end: + ret + +gfx_read_file: +; open file +; es:si - file name + + push cs + pop es + mov ax,6 + mov si,pspCmdArg+1 + int 22h + jnc gfx_file_read + stc + ret + +gfx_file_read: +; si - file handle +; eax - length of file in bytes, or -1 +; cx - file block size + + mov edx,[gfx_mem0_end] + sub edx,[gfx_mem0_start] + sub edx,0fh ; space to allow for aligning later + ; edx: max allowed size + + cmp eax,-1 ; unknown file size -> set t...