
Basic Data Operation

This is a basic data operation. It represents a fundamental action on a basic data type.
You may see other such operations in the Basic Data Operations category, or:


Integer Operations
Arithmetic |
Comparison
Boolean Operations
Bitwise |
Logical
String Operations
Concatenation |
Interpolation |
Comparison |
Matching
Memory Operations
Pointers & references |
Addresses




Task

Demonstrate how to get the address of a variable and how to set the address of a variable.




UserRam equ $100000
Cursor_X equ UserRam           ;$100000, byte length
Cursor_Y equ UserRam+1         ;$100001, byte length
SixteenBitData equ UserRam+2   ;$100002, word length (VASM doesn't allow labels to begin with numbers.)
ThirtyTwoBitData equ UserRam+4 ;$100004, long length 
 
;GET THE ADDRESS
 
LEA ThirtyTwoBitData,A0        ;load $100004 into A0.