Who could tell where to download source code

Programming, for all ages and all languages.
Post Reply
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Who could tell where to download source code

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Who could tell where to download source code

Post by Solar »

Learning 80x86 Assembly

Looking at source code is the wrong approach.
Every good solution is obvious once you've found it.
User avatar
Coty
Member
Member
Posts: 286
Joined: Thu Feb 12, 2009 5:12 pm

Re: Who could tell where to download source code

Post 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.)
My hero, is Mel.
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Re: Who could tell where to download source code

Post 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.
TylerH
Member
Member
Posts: 285
Joined: Tue Apr 13, 2010 8:00 pm
Contact:

Re: Who could tell where to download source code

Post by TylerH »

May I suggest an assembly oriented forum, perhaps one relating to your assembler of choice?
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: Who could tell where to download source code

Post 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
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
User avatar
Thomas
Member
Member
Posts: 281
Joined: Thu Jun 04, 2009 11:12 pm

Re: Who could tell where to download source code

Post 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
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Re: Who could tell where to download source code

Post 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.
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:

Re: Who could tell where to download source code

Post 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.
"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