OSDev.org

The Place to Start for Operating System Developers
It is currently Wed May 24, 2017 11:50 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Where can I learn x86 Assembly?
PostPosted: Sat Mar 18, 2017 5:00 am 
Offline

Joined: Sat Mar 18, 2017 4:52 am
Posts: 17
Hello.

Where are good tutorials to learn x86 Assembly? It is hard to learn and I am struggling with finding a well explained tutorial.

I would like a good response please.

Thanks
Sam.

_________________
AX BX CX DX BP SP SI DI. The registers that never die. 16-bit... will always sit... in a book where people look. My signature is terrible! I think we all know that.


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Sat Mar 18, 2017 12:54 pm 
Offline
Member
Member
User avatar

Joined: Sun Jan 13, 2013 6:24 pm
Posts: 71
Location: Grande Prairie AB
Before you delve into tutorials, it's essential you understand the resources, particularly, the instruction set. As an example, you might start with MOV.
Code:
        mov     eax, ebx       ; register to register
        mov     eax, 500       ; immediate to register
        mov     eax, [esi]

As you go through the possibilities, that opens to door to learning about addressing modes etc. Then afterward, when you look at tutorials they become much more understandable because you know what each instruction does. You'll soon discover there are good tutorials and there are bad ones and once you know a lot about X86, you might be surprised as to how often you can come up with an effective algorithm on your own.

The Software Developers Manual is 3251 pages and although you don't need to know every page right off the bat, but without that knowledge, assembly programming can be pretty frustrating.


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Mon Mar 20, 2017 8:19 am 
Offline

Joined: Sun Jan 29, 2017 11:37 am
Posts: 1
This is a good place to start. It shows how C works and certain fundamentals of windows .

https://www.youtube.com/watch?v=mYCyMaG ... xHi-EhokHG


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Mon Mar 20, 2017 12:25 pm 
Offline

Joined: Sat Mar 18, 2017 4:52 am
Posts: 17
Sounds good. Anything that might help me with OS development?

_________________
AX BX CX DX BP SP SI DI. The registers that never die. 16-bit... will always sit... in a book where people look. My signature is terrible! I think we all know that.


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Tue Mar 21, 2017 12:48 pm 
Offline

Joined: Sat Mar 18, 2017 4:52 am
Posts: 17
Are there any better tutorials?

_________________
AX BX CX DX BP SP SI DI. The registers that never die. 16-bit... will always sit... in a book where people look. My signature is terrible! I think we all know that.


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Wed Mar 22, 2017 6:05 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 685
Location: Tallinn, Estonia
Define "better".

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Wed Mar 22, 2017 7:10 am 
Offline
Member
Member
User avatar

Joined: Fri Feb 17, 2017 4:01 pm
Posts: 100
Location: Ukraine, Bachmut
dozniak wrote:
Define "better".

Code:
#define BETTER

:mrgreen:

_________________
Trying to write an NT-like OS (ANT). First target architecture is mips32r2.
Hopefully this is not only not NSFW, but rather opposite. and feasible as well.


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Wed Mar 22, 2017 7:30 am 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 5:36 pm
Posts: 2057
Location: Bucharest, Romania
Don't try to learn engineering from tutorials. They are almost universally written by people who did not master the subject and there is almost never any quality control. Furthermore, their size puts constraints on their depth and the format is such that they only present one specific way of handling things so the reader is left none the wiser about possible alternatives. All in all, the biggest danger is that they will be left thinking they've learned more than they actually have. I recommend you start with one of the more popular books:


However, you've asked about material that would also help you with OS development so I think it's worth pointing out that assembly and OS development aren't really related. You don't need to know assembly, except to do a few architecture-specific things (such as context switching, using the MMU's protection features, etc.), and that's only because most so-called higher-level languages are designed to be portable and are thus, in a sense, common denominators of all architectures they were designed with in mind. Otherwise, there's really nothing really special about assembly (yet there are plenty of reasons to stay away from it as much as possible if you're working on anything serious).

_________________
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]


Top
 Profile  
 
 Post subject: Re: Where can I learn x86 Assembly?
PostPosted: Fri Mar 24, 2017 5:09 am 
Offline

Joined: Sat Mar 18, 2017 4:52 am
Posts: 17
I don't want to learn a high level language. I want to learn 100% fully Assembly. The tutorials are impossible to learn from and they are confusing. I didn't want to learn Assembly just for operating system development, I wanted to check out reverse engineering. I've simply asked for a good place to learn Assembly. I found Intel manuals and they are so frustrating. I want a good tutorial that can help me get started with Win32 Assembly or DOS Assembly. I might even want to check out Linux Assembly.

_________________
AX BX CX DX BP SP SI DI. The registers that never die. 16-bit... will always sit... in a book where people look. My signature is terrible! I think we all know that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], omarrx024, Schol-R-LEA and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group