Kernel Prints OEM_ID???

Programming, for all ages and all languages.
Post Reply
TsrChristopher
Posts: 9
Joined: Sat Sep 29, 2007 8:45 am

Kernel Prints OEM_ID???

Post 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
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

fix your segment registers
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
TsrChristopher
Posts: 9
Joined: Sat Sep 29, 2007 8:45 am

Post by TsrChristopher »

Don't mean to sound like a n00b can you please tell me how?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
TsrChristopher
Posts: 9
Joined: Sat Sep 29, 2007 8:45 am

Post by TsrChristopher »

okay i am using google, i do not believe i am finding what i need, could you direct me to a website?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post 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
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply