Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Destination Addressing Modes
- ; Direct
- mov A, R0; 0
- ; A[0] = Address of B[0]
- mov X, (R0)+; 2
- ; A[1] = Address of B[0]
- mov X, (R0)+; 4
- ; A[1] = Address of B[1]
- mov Y, -(R0); 6
- ; A[2] = Address of B[2]
- mov Z, 1(R0); 8
- ; Indirect
- mov A, R0; 11
- ; B[0] = Address of B[0]
- mov X, @(R0)+; 13
- ; B[1] = Address of B[0]
- mov X, @(R0)+; 15
- ; B[1] = Address of B[1]
- mov Y, @-(R0); 17
- ; B[2] = Address of B[2]
- mov Z, @1(R0); 19
- mov A, R0; 22
- mov (R0)+, R1; 24, R1 = 37
- mov (R0)+, R1; 25, R1 = 38
- mov (R0)+, R1; 26, R1 = 39
- mov B, R0; 27
- mov (R0)+, R1; 29, R1 = 37
- mov (R0)+, R1; 30, R1 = 38
- mov (R0)+, R1; 31, R1 = 39
- ; Starting address, values...
- define A 33,0,0,0 ;32
- ; Starting address, values...
- define B 37,0,0,0 ;36
- define X 37 ; 40, Address of B[0]
- define Y 38 ; 41, Address of B[1]
- define Z 39 ; 42, Address of B[2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement