Displaying 20 results from an estimated 20 matches for "lodsb".
2004 Feb 02
1
Bug in mbr.asm
Found this small bug. It won't print error messages. A simple fix.
--- mbr.asm.orig 2002-10-03 06:02:50.000000000 -0400
+++ mbr.asm 2004-01-08 06:55:13.000000000 -0500
@@ -165,7 +165,7 @@
die:
.msgloop:
lodsb
- xor al,al
+ or al,al
jz .now
mov ah,0Eh ; TTY output
mov bx,0007h
--
Pluto
2004-02-02 03:20:54.489 UTC (JD 2453037.639520)
X = -5.255192111, Y = -29.339637518, Z = -7.572624207
X...
2002 Jun 07
2
pxelinux problem (plus a fix proposal)
...5 ; END option
je .done
+ ;
+ ; ISC-dhcp v 3.X + PXE patch encapsulates pxelinux options into
+ ; vendor-extension (rfc 1533, option 43) Jaroslaw.Polok at cern.ch
+ ; for now just skip option byte and length byte
+
+ cmp al, 43 ; VENDOR EXTENSION option
+ jne .not_vendor_exts
+ lodsb
+ dec cx
+ jmp short .loop
+
+ .not_vendor_exts:
+
; Anything else will have a length field
mov dl,al ; DL <- option number
xor ax,ax
lodsb ; AX <- option length
dec cx
2010 Nov 26
1
[PATCH] new *br: Show handoff data
...call wrchr
popw %dx
andw $0xFFF0, %dx
call wrhexw
#endif /* DEBUG_PNP */
call crlf
end:
jmp bootfail
ASCII_MARKER1 "wc"
wrchr:
movb $0x0e, %ah
movb (BIOS_page), %bh
movb $0x07, %bl
int $0x10 /* May destroy %bp */
ret
ASCII_MARKER1 "ws"
wrstr:
pop %si
wrstr_l:
lodsb
cmpb $0, %al
je wrstr_d
call wrchr
jmp wrstr_l
wrstr_d:
push %si
ret
crlf:
call wrstr
.ascii "\r\n\0"
ret
ASCII_MARKER1 "hx"
wrhexn:
and $0x0F, %al
cmpb $10, %al
jae .alph
addb $'0, %al
jmp .wc
.alph:
addb $('A - 10), %al
.wc:
call wrchr
ret
wrhexb:...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...+.vfat_abort: ; Something went wrong, skip
+ pop di
+ pop si
+ pop ecx
+ pop eax
+ jmp .skip_entry
+
+.short_entry:
+ test byte [gs:si+11],8 ; Ignore volume labels //HERE
+ jnz .skip_entry
+ mov edx,eax ;Save current sector
+ push cx
+ push si
+ push di
+ mov cx,8
+.short_file:
+ gs lodsb
+ cmp al,'.'
+ jz .short_dot
+.short_file_loop:
+ cmp al,' '
+ jz .short_skip_bs
+ stosb
+ loop .short_file_loop
+ jmp .short_period
+.short_skip_bs: ; skip blank spaces in FILENAME (before EXT)
+ add si,cx
+ dec si
+.short_period:
+ mov al,'.'
+ stosb
+ mov cx,...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...t_cp_ln: ; Copy VFAT line
+ dec al ; Store the next line we need
+ mov dx,ax ; Use DX to store the progress
+ mov bx,13
+ mov ah,0
+ mul bl ; Offset for DI
+ add di,ax ; Increment DI
+ inc si ; Align to the real characters
+ mov cx,13 ; 13 characters per VFAT DIRENT
+.vfat_cp_chr:
+ gs lodsb
+ inc si ; Unicode here!!
+ stosb
+ cmp al,0
+ jz .vfat_find_next ; Null-terminated string; don't process more
+ cmp cx,3
+ je .vfat_adj_add2
+ cmp cx,9
+ jne .vfat_adj_add0
+.vfat_adj_add3: inc si
+.vfat_adj_add2: inc si
+.vfat_adj_add1: inc si
+.vfat_adj_add0:
+ loop .vfat_cp_chr
+...
2009 Jul 15
0
[PATCH] gfxboot: parse TIMEOUT keyword
...uf
+ push ebx
+ call parseint
+ jc .err
+ mov [menu_timeout],ebx
+.err:
+ pop ebx
+.eof:
+.noparm:
+ ret
+
skipline:
cmp al,10
je .end
@@ -897,6 +932,35 @@ memcmp:
pop si
ret
+parseint:
+ push eax
+ push ecx
+ xor eax,eax
+ xor ebx,ebx
+ xor ecx,ecx
+ mov cl,10
+.loop:
+ lodsb
+ and al,al
+ jz .done
+ cmp al,'0'
+ jb .err
+ cmp al,'9'
+ ja .err
+ sub al,'0'
+ imul ebx,ecx
+ add ebx,eax
+ jmp short .loop
+.done:
+ clc
+.ret:
+ pop ecx
+ pop eax
+ ret
+.err:
+ stc
+ jmp short .ret
+
section .data
msg_progname db 'gfxboot: ...
2006 Mar 10
2
unload memdisk+FreeDOS => local boot
Sensei H. Peter Anvin,
I have successfully modified/enhanced memdisk so that one can chainload a
local operating system after running diskless FreeDOS.
I would like your advice regarding the appropriate interface for invoking
this functionality.
In addition, I would like to know what steps to take so that you feel
comfortable considering including this in the standard syslinux
distribution.
2017 Mar 21
0
Patch: make slightly more verbose versions of isohdp.x.S
...his is invoked with "call", with the
- * error message at the return address.
+/*
+ * Print message. This is invoked with "call", with the message at the
+ * return address.
+ * Destroys SI.
*/
-error:
- popw %si
+print_string:
+ pop %si
+ push %bp
+ push %ax
+ push %bx
2:
lodsb
movb $0x0e, %ah
@@ -284,10 +329,11 @@ error:
cmpb $10, %al /* Newline? */
jne 2b
- int $0x18 /* Boot failure */
-die:
- hlt
- jmp die
-
+ pop %bx
+ pop %ax
+ pop %bp
+ push %si
+ ret
+
/* Address of pointer to isolinux.bin */
lba_offset = _start+432
diff --git a/mbr/isohdppv.S b/mbr/is...
2007 Mar 19
1
OziExplorer aborts with wine 0.9.18
I'm running Fedora core 3 and compiled wine 0.9.18 from source. WIth
version 0.9.16 I was able to run OziExplorer just fine, but it aborts
with this version. Has anyone else encountered problems?
wine OziExp.exe
wine: Unhandled page fault on read access to 0x7bc80006 at address
0xe8684a (thread 0009), starting debugger...
WineDbg starting on pid 0x8
Unhandled exception: page fault on
2003 Dec 27
0
2 disks boot patch
...call mangle_name ; Mangle ramdisk name
pop si
cmp byte [es:InitRD],NULLFILE ; Null filename?
seta byte [es:initrd_flag] ; Set flag if not
not_initrd: pop es ; Restore ES ->
real_mode_seg
skip_this_opt: lodsb ; Load from command
line
cmp al,' '
ja skip_this_opt
@@ -287,20 +299,28 @@
call cwritestr
;
; Now see if we have an initial RAMdisk; if so, do requisite
computation ; We know we have a new kernel; the old_kern...
2003 Dec 27
0
FW: 2 disks boot patch
...call mangle_name ; Mangle ramdisk name
pop si
cmp byte [es:InitRD],NULLFILE ; Null filename?
seta byte [es:initrd_flag] ; Set flag if not
not_initrd: pop es ; Restore ES ->
real_mode_seg
skip_this_opt: lodsb ; Load from command
line
cmp al,' '
ja skip_this_opt
@@ -287,20 +299,28 @@
call cwritestr
;
; Now see if we have an initial RAMdisk; if so, do requisite
computation ; We know we have a new kernel; the old_kern...
2002 Feb 26
0
syslinux timeout
...line write pointer
push di
mov byte [di],0 ; Null-terminate command line
mov si,command_line
call cwritestr ; Write command line so far
pop di
jmp short get_char_2
auto_boot:
mov si,default_cmd
mov di,command_line
@@ -3377,21 +3435,24 @@
pushad
.top: lodsb
and al,al
jz .end
call writechr
jmp short .top
.end: popad
popfd
ret
-%ifdef debug
+; BEGIN DTM ------------------------------------------------
+;%ifdef debug
+%ifdef debug or writehex
+; END DTM --------------------------------------...
2009 Mar 30
2
[PATCH 1/1] v2 Add Diagnostic MBR for trouble-shooting
...ters whose address is in SI */
+print:
+ cld /* move left-to-right in string */
+ movb (video_page), %bh /* get current page from video controller's memory-mapped I/O register */
+ movb $0x07, %bl /* colour attribute */
+ movb $0x0e, %ah /* BIOS function: display char */
+
+print_next:
+ lodsb /* load a character into AL */
+ orb %al, %al /* is it the string zero terminator? */
+ jz print_end /* finished */
+
+ call print_char
+ jmp print_next /* next character */
+
+print_char:
+ int $0x10 /* display */
+ ret
+
+print_end:
+ ret
+
+msg_boot:
+ .ascii "DIAG "
+msg_...
2017 Mar 21
3
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
...$0x0F, %al
cmp $9, %al
jbe .wc
add $('A'-'0'-10), %al
.wc:
add $'0', %al
call wrchr
ret
/*
* Print message. This is invoked with "call", with the message at the
* return address.
* Destroys SI.
*/
print_string:
pop %si
push %bp
push %ax
push %bx
2:
lodsb
call wrchr
cmpb $10, %al /* Newline? */
jne 2b
pop %bx
pop %ax
pop %bp
push %si
ret
end_of_code:
/* Address of pointer to isolinux.bin */
lba_offset = _start+432
2009 Mar 30
0
[PATCH 1/1] Add Diagnostic MBR for trouble-shooting
...ters whose address is in SI */
+print:
+ cld /* move left-to-right in string */
+ movb (video_page), %bh /* get current page from video controller's memory-mapped I/O register */
+ movb $0x07, %bl /* colour attribute */
+ movb $0x0e, %ah /* BIOS function: display char */
+
+print_next:
+ lodsb /* load a character into AL */
+ orb %al, %al /* is it the string zero terminator? */
+ jz print_end /* finished */
+
+ call print_char
+ jmp print_next /* next character */
+
+print_char:
+ int $0x10 /* display */
+ ret
+
+print_end:
+ ret
+
+msg_boot:
+ .ascii "DIAG "
+msg_...
2014 Jan 19
2
USB boot problems on Gigabyte GA-M55Plus-S3G
...mov ds, ax
call PrintHelloWorld
jmp .InfiniteLoop
.InfiniteLoop:
jmp .InfiniteLoop
HelloWorld db "Hello World Bootloader !!", 0x0d, 0x0a, 0x00
PrintHelloWorld:
mov si, HelloWorld
call PrintStr
ret
PrintStr:
push ax
mov ah, 0Eh
.loop:
lodsb
cmp al, 0x00
je .done
int 10h
jmp .loop
.done:
pop ax
ret
times 510-($-$$) db 0
dw 0xAA55
' > hello.asm
nasm -f bin -o hello.bin hello.asm
dd status=noxfer conv=notrunc if=hello.bin of=hello.img
kvm hello.img
On Sun, Jan 19, 2014 at 5:2...
2009 Mar 30
2
[PATCH 1/1] v3: Add Diagnostic MBR for trouble-shooting BIOS boot-order problems.
...ters whose address is in SI */
+print:
+ cld /* move left-to-right in string */
+ movb (video_page), %bh /* get current page from video controller's memory-mapped I/O register */
+ movb $0x07, %bl /* colour attribute */
+ movb $0x0e, %ah /* BIOS function: display char */
+
+print_next:
+ lodsb /* load a character into AL */
+ orb %al, %al /* is it the string zero terminator? */
+ jz print_end /* finished */
+
+ call print_char
+ jmp print_next /* next character */
+
+print_char:
+ int $0x10 /* display */
+ ret
+
+print_end:
+ ret
+
+msg_boot:
+msg_address_mode:
+ .ascii &quo...
2010 Mar 09
3
Enhanced MDISKCHK.COM and MEMDISK patches
Good day to all,
Gert Hulselmans requested a feature for MDISKCHK.COM that would function
roughly like GETARGS.COM[1] by Murali Krishnan Ganapathy: DOS SET
command output for MEMDISK kernel arguments passed by previous
boot-loaders. He also needed to support the case for
MEMDISK-in-a-MEMDISK type situations, where all MEMDISK kernel arguments
could be gathered together and output as a list
2011 May 25
1
[GIT PULL] elflink ldlinux
Hi,
These patches contain support for some features that are already in
Syslinux 4 but weren't working properly on the elflink branch. It's
another step closer to feature parity with Syslinux 4.
Having to jump through the comboot API for localboot support is less
than ideal and I'll eventually fix that, probably when we move a big
chunk of code from asm to C.
Also, there's a
2014 Jan 18
5
USB boot problems on Gigabyte GA-M55Plus-S3G
>
> In message <BLU0-SMTP2805E16A0E7A33B925EDF458BB80 at phx.gbl>,
> Ady <ady-sf at hotmail.com> wrote:
>
> >Now, to move forward with Clonezilla in your USB drive, we need to
> >proceed with some steps that are not as simple as dd'ing an image.
>
> Apologies for my impertinence, but I have one question: Why?
>
> I was under the impression