New user - New road ahead.

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.
StillTrying
Posts: 13
Joined: Fri May 15, 2015 9:18 am

Re: New user - New road ahead.

Post by StillTrying »

@Brenden

Ah, excellent, perfectly understood. I am curious as to why it was not added in the original source code, he did mention the segment registers and what they did but now how they were utilised.

Hmm.. So if I make a far call to a regime I need to do some processing with, I would have to set DS when I am inside the call and back again as I return? Am I safe to assume if I push DS before calling the function, and popping it again when I return I am in the clear?

@glaux

Your answer would be base being 0x0001 and offset(org?) being 0x0. I understand the addressing and the mathematics behind it, my problem was not even realising I needed it. A mistake I won't make again for sure.

@TightCoder

Thank you very much! I will Dl it now and and give it a thorough read, I am from a C background and my assembly is novice at best.

I appreciate the help from all of you, thank you.

I'll get back to it, now I know how to load sectors I can take the printing regime out the first 512 bytes and use those bytes for more useful things.


Thanks again all.
glauxosdev
Member
Member
Posts: 119
Joined: Tue Jan 20, 2015 9:01 am
Libera.chat IRC: glauxosdever

Re: New user - New road ahead.

Post by glauxosdev »

Arrrgh, Segment would be 0x1000 and org 0x0000.

You probably didn't understand the real mode addressing. :|
So the next exercise will be to check why my answer is correct.

Regards,
glauxosdev
StillTrying
Posts: 13
Joined: Fri May 15, 2015 9:18 am

Re: New user - New road ahead.

Post by StillTrying »

@Glaux

*FACEPALM* you know that's the exact base and offset I've been trying to load for 2 days...and just got it working... I think I need a break :D
Post Reply