How to write to RAM in real mode nasm?
-
I'm learning to make an operating system. The specific address I need to write to is 0x500.
-
Answer:
You're learning to make an OS? Seriously? It took a huge team of expert programmers YEARS to write an OS. How much time do YOU plan on taking to write your OS with just you alone? Okay, in assembly language, depending on which ML you are using, there is a command (or something similar) that goes something like this: "MOV <Address>" which moves the contents of the AC to the address specified by <address>. And believe me, if you don't understand assembly language and the consequential affects of every single command, you can be in serious trouble, because assembly language has no constraints the way high-level languages have. In assembly language, unlike VB or C#, you can actually cross over an array boundary, you can overwrite your OS, you can even overwrite your HD! Well, in any case, good luck with that ;-} Edit: I just noticed the additional comments (had to leave the computer awhile, and came back to see the additional details). Okay, I think you need "mov al, value", but I'm not familiar with the "out" command that you mentioned. I do wish you luck in your endeavors, just be aware of some of the dangers of using ML. :-) (Hopefully, some one else will come along with a more specific answer.)
m12 at Yahoo! Answers Visit the source
Related Q & A:
- How To Write Invitation Card?Best solution by Yahoo! Answers
- How to get endless online into window mode?Best solution by Super User
- How do I get to game/video mode on my Symphonic TV?Best solution by ChaCha
- How do I get out of safe mode?Best solution by Yahoo! Answers
- How do you turn off the safety mode in youtube?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.