Page 1 of 1

Kernel Prints OEM_ID???

Posted: Sat Sep 29, 2007 8:49 am
by TsrChristopher
Hello Friends,

I am using an example of a FAT16 bootload that jumps to loader.bin, when I am in loader.bin i use the following code.

Code: Select all

jmp main

	welcome	db "Welcome to FixAnywhere"

main:
	cli
	mov ax, 0x0000
	mov ss, ax
	mov sp, 0xFFFF
	sti
	mov si, welcome
	call DisplayMessage
	jb done

DisplayMessage:
	lodsb
	or al, al
	jz .DONE
	mov ah, 0x0E
	mov bh, 0x00
	mov bl, 0x07
	int 0x10
	jmp DisplayMessage
.DONE
	ret
done:
My DisplayMessage Will print whatever was in the OEM_ID of that FAT16 header, why is this and how can I get around it. Also, can someone please direct me to a better tutorial on how to use FAT and not just a documentation?

Thank you all

Posted: Sat Sep 29, 2007 9:45 am
by Combuster
fix your segment registers

Posted: Sat Sep 29, 2007 9:47 am
by TsrChristopher
Don't mean to sound like a n00b can you please tell me how?

Posted: Sat Sep 29, 2007 11:03 am
by Combuster
Don't mean to sound like a n00b
Sorry, you just did. To avoid that, please use google before asking next time. In this case, the first three hits should be enough.

Posted: Sat Sep 29, 2007 11:53 am
by TsrChristopher
okay i am using google, i do not believe i am finding what i need, could you direct me to a website?

Posted: Sat Sep 29, 2007 4:01 pm
by Combuster
could you direct me to a website?
Combuster wrote:<link> (...) In this case, the first three hits should be enough.
Even more specifically: here