What very good tutorials are out there for Assembly?

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.
stevej150
Posts: 23
Joined: Wed Jan 25, 2017 8:16 am

What very good tutorials are out there for Assembly?

Post by stevej150 »

Hey guys. I want to expand my learning. I know quite a lot of OS development. However, I only know a few things.

I want to learn more about instructions, interrupts, entering and using protected mode (32-bit) and long mode (64-bit).

Where could I learn even more? I don't want a guide that talks about decimal, hex and binary if you know what I mean. Where would you learn? I've read more of the articles on the OSDev Wiki. I don't want to play around with other projects. I just want documentation or something. It can have things to do with hardware and drivers.

Cheers
Steve
One day in the future... computers will be holograms...
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: What very good tutorials are out there for Assembly?

Post by BrightLight »

Don't keep asking the same question over and over again. Google will get you good results.
Hint: If you need documentation about x86 CPUs, the Intel software development manuals volume 2 (instruction set reference) and volume 3 (system programming guide) are what you need.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
stevej150
Posts: 23
Joined: Wed Jan 25, 2017 8:16 am

Re: What very good tutorials are out there for Assembly?

Post by stevej150 »

What links can I go to?
One day in the future... computers will be holograms...
hannah
Member
Member
Posts: 34
Joined: Wed Oct 12, 2016 11:32 am
Location: At my PC

Re: What very good tutorials are out there for Assembly?

Post by hannah »

Me thinks you are AndrewThompson555
stevej150
Posts: 23
Joined: Wed Jan 25, 2017 8:16 am

Re: What very good tutorials are out there for Assembly?

Post by stevej150 »

Who is that? Me think? Are you serious? Who in the world is Andrewthompson555?
One day in the future... computers will be holograms...
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What very good tutorials are out there for Assembly?

Post by iansjack »

stevej150 wrote:What links can I go to?
This is probably the best one: http://www.google.com .
stevej150
Posts: 23
Joined: Wed Jan 25, 2017 8:16 am

Re: What very good tutorials are out there for Assembly?

Post by stevej150 »

hannah wrote:Me thinks you are AndrewThompson555
Are you serious?
iansjack wrote:
stevej150 wrote:What links can I go to?
This is probably the best one: http://www.google.com .
Well, I know what Google is. I mean links to the references! I've tried Google. You must probably think I'm a beginner. Guess what. I'm not. I know how to do things. I know about INT 10h functions and even INT 16h!

I was meaning to learning more about instructions and a few more interrupts. By the way, how would I add a number?

I've tried doing it but it shows just special symbols.

By the way, how would I add a number to a register (using something like mov ptr test, ax) and print it out?
One day in the future... computers will be holograms...
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: What very good tutorials are out there for Assembly?

Post by dozniak »

stevej150 wrote: I know how to do things. I know about INT 10h functions and even INT 16h!
You stopped being funny a while ago.

Google for "intel manual volume 3" or "intel manual volume 2" - google is not stupid and will show you relevant links. Make sure you are able to read before starting this exercise.
Learn to read.
User avatar
hgoel
Member
Member
Posts: 89
Joined: Sun Feb 09, 2014 7:11 pm
Libera.chat IRC: hgoel
Location: Within a meter of a computer

Re: What very good tutorials are out there for Assembly?

Post by hgoel »

"If the truth is a cruel mistress, than a lie must be a nice girl"
Working on Cardinal
Find me at [url=irc://chat.freenode.net:6697/Cardinal-OS]#Cardinal-OS[/url] on freenode!
stevej150
Posts: 23
Joined: Wed Jan 25, 2017 8:16 am

Re: What very good tutorials are out there for Assembly?

Post by stevej150 »

Why... yes! But the Intel manual seems kinda... you know. I guess it isn't really something to learn from. What did you guys learn from? Did you learn from all these manuals? Probably not.
One day in the future... computers will be holograms...
glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Libera.chat IRC: glauxosdever
Location: Athens, Greece

Re: What very good tutorials are out there for Assembly?

Post by glauxosdever »

Hi,


Manuals, references... all of them are helpful.


Regards,
glauxosdever
User avatar
hgoel
Member
Member
Posts: 89
Joined: Sun Feb 09, 2014 7:11 pm
Libera.chat IRC: hgoel
Location: Within a meter of a computer

Re: What very good tutorials are out there for Assembly?

Post by hgoel »

stevej150 wrote:Why... yes! But the Intel manual seems kinda... you know. I guess it isn't really something to learn from. What did you guys learn from? Did you learn from all these manuals? Probably not.
Actually, that is where I learned x86 assembly from. I started with MIPS in a simulator to gain an understanding of assembly in general and managed to apply that knowledge over to x86 using instruction references either directly from the manuals or from sources derived from the manuals.
"If the truth is a cruel mistress, than a lie must be a nice girl"
Working on Cardinal
Find me at [url=irc://chat.freenode.net:6697/Cardinal-OS]#Cardinal-OS[/url] on freenode!
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: What very good tutorials are out there for Assembly?

Post by iansjack »

stevej150 wrote:You must probably think I'm a beginner.
If it looks like a duck, and quacks like a duck, ....
Did you learn from all these manuals? Probably not.
Probably.

The manuals can be quite daunting for a beginner - but you're not a beginner. :)
stevej150
Posts: 23
Joined: Wed Jan 25, 2017 8:16 am

Re: What very good tutorials are out there for Assembly?

Post by stevej150 »

Is there a manual that doesn't always give Gibberish about hex, decimal and binary? Is there something that actually teaches you about instructions, functions, interrupts and hardware? Things that you don't really know.
One day in the future... computers will be holograms...
User avatar
hgoel
Member
Member
Posts: 89
Joined: Sun Feb 09, 2014 7:11 pm
Libera.chat IRC: hgoel
Location: Within a meter of a computer

Re: What very good tutorials are out there for Assembly?

Post by hgoel »

stevej150 wrote:Is there a manual that doesn't always give Gibberish about hex, decimal and binary? Is there something that actually teaches you about instructions, functions, interrupts and hardware? Things that you don't really know.
The 'gibberish' about numeric representations is an important part of the teaching about the instructions thing.
The manuals I linked are enough to potentially design and implement an x86 processor, so they definitely cover everything you want to know assuming that you know what those things are at a basic level.

Instructions are all completely described in volume 2.
Interrupts and switching between processor modes is all completely covered in volume 3.

However, all this involves having an understanding of hex and binary notation as a lot of these things require manipulating bit fields in various registers.

Now if you want to learn things like 'What is an interrupt?' that's a different question altogether.
"If the truth is a cruel mistress, than a lie must be a nice girl"
Working on Cardinal
Find me at [url=irc://chat.freenode.net:6697/Cardinal-OS]#Cardinal-OS[/url] on freenode!
Post Reply