Page 1 of 1

Who could tell where to download source code

Posted: Fri Nov 19, 2010 7:44 pm
by leetow2003
I am learning assemble about protected mode under 80386,
but I find almost codes on book cann't run well,I want to
get some source codes about protected mode 80386,
who could tell where to download,
or who could send me by e-mail?My e-mail is [email protected] ,
Thank you very much.

Re: Who could tell where to download source code

Posted: Fri Nov 19, 2010 11:27 pm
by Solar
Learning 80x86 Assembly

Looking at source code is the wrong approach.

Re: Who could tell where to download source code

Posted: Sat Nov 20, 2010 7:28 am
by Coty
@leetow2003: Can I suggest perhaps learning x86 assembly, before jumping into P-mode? If you do not know the basics your not going to go anywere. (if you knew the basic's chances are you wouldn't need to ask this question.)

Re: Who could tell where to download source code

Posted: Sat Nov 20, 2010 7:54 pm
by leetow2003
Coddy wrote:@leetow2003: Can I suggest perhaps learning x86 assembly, before jumping into P-mode? If you do not know the basics your not going to go anywere. (if you knew the basic's chances are you wouldn't need to ask this question.)
Thanks for your advice,I have learned 8088 assembly for a long time,and now I want to learn
P-mode,but I read some books and copy those codes,and they don't run well,so I want to
get some source code about P-mode.

Re: Who could tell where to download source code

Posted: Sat Nov 20, 2010 8:05 pm
by TylerH
May I suggest an assembly oriented forum, perhaps one relating to your assembler of choice?

Re: Who could tell where to download source code

Posted: Sun Nov 21, 2010 1:15 am
by gravaera
Hi:
leetow2003 wrote:Thanks for your advice,I have learned 8088 assembly for a long time,and now I want to learn
P-mode,but I read some books and copy those codes,and they don't run well,so I want to
get some source code about P-mode.
You can look at 90% of the source in arch/i386 of the linux tree for "pmode" source: it's all written for protected mode. What you want is an understanding of the semantics of protected mode. For that, you should read the intel reference manuals.

--All the best,
gravaera

Re: Who could tell where to download source code

Posted: Mon Nov 22, 2010 6:06 am
by Thomas
Hi ,
Looking at source code is the wrong approach.
At the risk of going off topic , sometimes looking at the code is the only thing you can do :wink: . Esp when you have to work with internally developed toolkits and so forth written by overworked employees who had little time to document them :wink:. I think its nice to have a set of examples to learn though : http://flatassembler.net/examples.php . Try with hello world , then proceed with simple things like matrix multiplication and so forth. Once you get the hang rest of the things are easy :) . you might want to read the book advanced programming for the 386 by James Turley.


Do not put your email address like that. Your mailbox will be a target for spam bots if you do so :wink:

--Thomas

Re: Who could tell where to download source code

Posted: Tue Nov 23, 2010 8:35 pm
by leetow2003
Thank you Thomas,and I download the files,but I find most codes
are for win32 assembler,I hope those files are codes for pure pretected
mode,do you have these codes?Thanks for your advice.

Re: Who could tell where to download source code

Posted: Wed Nov 24, 2010 12:36 am
by Combuster
gravaera wrote:What you want is an understanding of the semantics of protected mode. For that, you should read the intel reference manuals.
QFT.

Learn what protected mode is before making more of a fool of yourself.