loader

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

Re: loader

Post by lama »

thanks for the answer. yes - the kernel image should be loaded to to 0xa000. so for int13 must be es set to 0xa00. that has nothing to do with the stack segment :wink: , witch is set to 0 i guess.
but as i said in my previous post - i probably solved this problem. but rather keep this topic open...
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

Re: loader

Post by Firestryke31 »

lama wrote:es set to 0xa00. that has nothing to do with the stack segment.
WRONG! These segments overlap. If SS is 0x0000 the only ES values that will not overlap are >= 0x1000. This has to do with the way real mode addressing works, in which an address = segment * 16 + offset, so with your setup SS:0xA000 == ES:0x0000 and data will be overwritten.
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
Post Reply