How can I write a really good mode?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.