Quantcast
Channel: Cemetech
Viewing all articles
Browse latest Browse all 75345

z80 Assembly :: RE: Small question about macros.

$
0
0
Author: MrIdrik
Posted: 05 Apr 2013 09:10:55 pm (GMT -5)

"Finally, the .equ instruction works very similar to the #define instruction. The following two instructions do exactly the same thing:
Code:
#define trash AppBackUpScreen
trash .equ AppBackUpScreen
They both tell the assembler that the alias "trash" should be replaced with "AppBackUpScreen"."

You are saying trash is at the memory location of appbackupscreen?

And also in the code right above the last one, what's the difference betwwen (Var_X) and Var_X, is one the actual value, and the other the memory location? And also how can you declare a variable after it's supposed to be used?


Viewing all articles
Browse latest Browse all 75345

Trending Articles