Can someone tell me what constants and equates are in assembly programming?
There are no "constants" that I know of. Instead, assembly programmers can use registers, which for z80 (for the calculator) are a, b, c, d, e, f, hl, etc. They run very quickly, but have limited functions, like add, subtract, xor, etc. To store values they are usually placed somewhere in memory, say, at address $8000.
By "equates", do you mean "=" as it is used in C++, Java, etc.? The "=" in assembly defines a constant, for example:
mynum = 5 ;you can also use equ ld a, mynum;a will be set to 5
In z80, ld is used to set registers to be equal to certain values. You can also do
ld ($8000), a
to store the value of the a register to address $8000. Hope this helped.
Fire Emblem for TI 83/4+ Progress: Demo: 75% Total: 40% Postponed indefinitely