Message board for the users of flat assembler.
> Main > What is the difference between registers?
Kristian_ 15 Nov 2004, 13:46
I can't seem to understand what exactly are registers.
The main purpose of a register is to keep a number (variable). Registers are located into CPU, so they are much faster than memory.
Well, thats all I know. I know that I can store a variable in it, and I know that there are 8 bit and 16 bit registers. For example there are: AX - accumulator, BX - BASE etc.. Isn't they the same?
For example when I want to output text in DOS, I store value 9 into AH register and address of my variable that contains text into DX register. Why can't I store my address of my variable in BX register, and how does DOS know in what register I store my message?
There are also segment, index registers! What are they? Why are they so many? and what is the purpose for each register? Can anyone please explain me this? Or does anyone know any newbie friendly tutorial about this? Thank you!
[Matrix_Spell_Checking=adjust;reason="For Better searching"]Matrix[/Matrix_Spell_Checking]
|15 Nov 2004, 13:46||
Madis731 15 Nov 2004, 14:42
DOS doesn't "know" anything
THAT is the reason you cannot put it in bx or any other,
because DOS always takes the ax register as input.
I think you answered your question yourself there
you don't need to touch segments very often (at least in 32bit mode)
I think you have to read some tutorials, because we cannot
explain all to you in these forums.
|15 Nov 2004, 14:42||
Kristian_ 15 Nov 2004, 14:47
Now please can you suggest me any fasm tutorials? I have read this http://decard.net tutorial. Thank you!
|15 Nov 2004, 14:47||
Madis731 15 Nov 2004, 14:59
I guess you haven't read any tutorials or searched the boards
another good resource is
Check out the AoA book and some windows programming resources
|15 Nov 2004, 14:59||
Matrix 15 Nov 2004, 19:23
i also recommend you reading the basics before asking something, this board is not large enough to contain every basic questions like what is byte? or similar.
you should also take a look @
Flat Assembler Frequently Asked Questions (FAQ) (main)
its linked to other FAQs as well, and they should contain a large amount of links to tutorials. if you find tutorials explaining your problem well you can recommend them @ faq page like:
"i found this great tutorial about xxxx @ http://xxxx.com/whatisit.htm,
and you should add it to your faq."
this way it others have the same question, they will find it easily without searching in the FAQ
|15 Nov 2004, 19:23||
Matrix 15 Nov 2004, 23:52
well i see your thread is already DUPE,
why do you post same question multiple times?
|15 Nov 2004, 23:52||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.