Protected Mode, in assembler Tutorials

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.
Post Reply
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Protected Mode, in assembler Tutorials

Post by VolTeK »

Protected mode in assembler tutorials
Shouldn't be an excuse for off topic elementary responses now.



I have decided to do some tinkering around with protected mode, So..
I have tried to look for Protected Mode tutorials, completely in assembler. If there are none i can settle with just using C and converting it to assembler, but are there any Protected Mode tutorials that anyone would know of that are completely in assembler? Maybe i haven't looked hard enough.
Last edited by VolTeK on Sun Aug 19, 2012 3:13 pm, edited 1 time in total.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Protected Mode, in assembler Tutorials

Post by JamesM »

What exactly are you looking for in the tutorial in terms of content? "protected mode" is both vague and specific - specifically it takes about 10 lines of assembly to set up.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Protected Mode, in assembler Tutorials

Post by VolTeK »

JamesM wrote:specifically it takes about 10 lines of assembly to set up.
In that case, i'm looking for the whole deal. Much more then just going into protected mode. A series much like what you have, but all in assembler.


I have also downloaded The art of assembly language in 32 bit, never knew that existed. If you have read it, may i have some note on how important it would be to give it all a good read?
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

Re: Protected Mode, in assembler Tutorials

Post by Tosi »

There are plenty of assembly language tutorials on the internet.
As the wiki says, you are not going to find a tutorial on everything.
Get the intel manuals and read through them, look at other people's code, and if you still need help, use google or join a general assembly language programming forum instead of asking on an OS development forum.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Protected Mode, in assembler Tutorials

Post by VolTeK »

Tosi wrote:There are plenty of assembly language tutorials on the internet.
As the wiki says, you are not going to find a tutorial on everything.
Get the intel manuals and read through them, look at other people's code, and if you still need help, use google or join a general assembly language programming forum instead of asking on an OS development forum.
VolTeK wrote:I have also downloaded The art of assembly language in 32 bit, never knew that existed. If you have read it, may i have some note on how important it would be to give it all a good read?
I have not downloaded the book, to re learn more assembler (I language i excel in, probably better than even you). Please refer to my first post as it states the main question to this thread. I had downloaded the book in hopes of learning more about the protected mode processor state, Not what the mov instruction does.

Just because i had mentioned an assembler book, does not mean its your chance to display how you learned assembler and how others should to in a thread that has nothing to do with learning it. How are you in OSDev if you can't read the first post? Unless i have phrased my title wrong.

You and a group of others on here, need a tutorial on Staying on topic, and not "How to increment my post counter"
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Protected Mode, in assembler Tutorials

Post by JamesM »

I'd honestly not spend a lot of effort specifically looking for tutorials in assembly.

It'll increase your experience and skill as an engineer to take what is effectively a specification in another language of how things interact (C, in this case), and translate it into your own language.

It'll also help you avoid the copypasta pitfalls of tutorials.

(just my 2p)
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: Protected Mode, in assembler Tutorials

Post by Combuster »

VolTeK wrote:Protected mode in assembler tutorials
Shouldn't be an excuse for off topic elementary responses now.
It would help if you actually asked a proper, well thought and written out question that does not just demand that we go pester you with stupid questions to find out what you really want.

There are snippets on the wiki on enabling protected mode, and you can just use any of the barebones and skip the C portion for the all-assembly variant. I mostly see however a lot of bragging on assembly skills when everything else in your posts point to a lack thereof. So please, stop asking for specific tutorials as it implies that you lack the necessary programming skills altogether, and look at the "How to ask questions the smart way". You with your post count should have known by now what that is actually about, and it saves all of us quite some time and mutual annoyances.
"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 ]
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: Protected Mode, in assembler Tutorials

Post by VolTeK »

Combuster wrote: So please, stop asking for specific tutorials as it implies that you lack the necessary programming skills altogether
How, and i want Your response.
Combuster wrote: I mostly see however a lot of bragging on assembly skills when everything else in your posts point to a lack thereof.

I also want why you think that as well. Unless, your just spouting typical Combuster text. I want to know why you think that, and proof on how its true. Not from some 15 year old, who gets on here and praises you every day. I want your response.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Protected Mode, in assembler Tutorials

Post by JamesM »

VolTeK wrote:
Combuster wrote: So please, stop asking for specific tutorials as it implies that you lack the necessary programming skills altogether
How, and i want Your response.
Combuster wrote: I mostly see however a lot of bragging on assembly skills when everything else in your posts point to a lack thereof.

I also want why you think that as well. Unless, your just spouting typical Combuster text. I want to know why you think that, and proof on how its true. Not from some 15 year old, who gets on here and praises you every day. I want your response.
At least quote one of the other, non inflammatory responses in this thread and reply to them, else this thread will become solely you and Combuster and I'll have to lock it.
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Protected Mode, in assembler Tutorials

Post by iansjack »

Don't questions like this belong in the "Programming" forum? It's a simple "How to progam?" qustion (the answer to which is "read the manuals").
rdos
Member
Member
Posts: 3307
Joined: Wed Oct 01, 2008 1:55 pm

Re: Protected Mode, in assembler Tutorials

Post by rdos »

VolTeK wrote:Protected mode in assembler tutorials
Shouldn't be an excuse for off topic elementary responses now.



I have decided to do some tinkering around with protected mode, So..
I have tried to look for Protected Mode tutorials, completely in assembler. If there are none i can settle with just using C and converting it to assembler, but are there any Protected Mode tutorials that anyone would know of that are completely in assembler? Maybe i haven't looked hard enough.
There probably are no tutorials, but there are documentation (Intel manuals) and sample code for protected mode OSes (like my transition to protected mode from real mode here: http://www.rdos.net/svn/trunk/kernel/boot/boot.asm, uncommented though).
Post Reply