Tutorial #4
2-18-99
Understanding Registers:
Before I go on with the tutorial, I have noticed that if you don't set your color to High-Color 16 Bit, the colors look dark and hard to see, so before you continue, if possible, set your color to anything higher than 256.
Ok, this tutorial is going to be about registers, this tutorial will be small so it won't be to tough.
You saw in tutorial #2 that was loaded numbers and variables into "hl" well, that is because a, b, c, d, e, h, and l (Thats an L, not an i) are registers, in Basic they are variables. In Basic you can load numbers into letters A to Z, like this: 2->A, which means you wanted to store 2 into the variable A. In ASM when you do this:
ld a,10
It means you wanted to load 10 into a. Now you can combine some registers to. You can combine af, bc, de, and hl to store more information. Its kind of complex so if you don't undestand, just read over this again, you'll eventually understand...
If you keep reading source code and read tutorials by people, eventually you will be able to make a game! Any Questions? Did I mess something up? AM I TOTALLY WRONG!?!? E-mail me!
*All programs made in my tutorials have been tested and work properly, if there is a mistake, its probably your mistake.*
(KSA)Tekken (uncool3@juno.com)