Well, my friend mbaranski ,( you can't cross a bridge before you reach it first, meaning, to be familiar with the tricks of optimization of any language not just assembly, you have to familiarize your self with the basics of the language first. Specially for the assembly language and low level C programming you may need to familiarize your self with some computer design architecture to be able to understand what does it mean pip line and parallel processing etc.
But, if you remember your problems memorizing the multiplication table when you was a kid, and if you are going to laugh now if I asked you what is the result of 12*12, you well get my point, for example on my first day in the engineering collage I didn’t know how to design an AND gate with MOSFT transistors, 5 years later my graduation project was designing a micro controller from scratch not using any micro processor [use your own micro processor] and write the software for it to run. It just needs time.
For you my friend J22, don’t even believe that your are not able to improve (let’s leave the word BEAT to the marketing people) or build on top of some body’s else researches, if you going to count what we still need to do, you will find it thousands of time more than we accomplished already. Biometric recognition technologies (Sound recognition, hand writing recognition, etc..)
Improving some tools we already use (and suffer from) like Microsoft MFC and more.
Just go a head and start, one thousand mile trip has to begin with one step.
Regarding your question about the register variable, it is not the same as using pointers.
It is just an instruction to put the value of this variable in the register not in memory.
Think about register just like a memory location but inside the micro processor it self which make any operation on this variable very fast. Use it wisely, as an engineer you never waste a water tank just to drink a glass of water. If you have time go to
and search for the book Assembly Language Primer for the IBM PC and XT by robbert laufor.
It is more than fun to read this book, don’t let XT scare you.
I can recommend another books in the hardware design too, but I don’t know what kind of study you practice now, and what is your schedule.
Feel free to contact me if you have any question.
Thanks
Walid Magd
Engwam@Hotmail.com