I know the data transfer instruction is used to move data. data can be move between memory, register and accumulator
different movement of data in assembly
accumulator to register mov R0, A
register to accumulator mov A, R0
how to write instruction for memory ( which memory is used for this)
memory to accumulator ?
memory to register ?
thanks its very useful can you tell me how to load the memory address i think when we use # then we can say we are loading the data and when we don't use # we can say we are loading the memory address
mov R0, #55h data is loading
mov R0, 55h address is loading
counter equ 0x30
mov A, counter
inc A
mov counter, A
Or indirectly using one of the registers
Code:
counter equ 0x30
mov R0,#counter
mov A, @R0
inc A
mov @R0, A
Oh yeah! the '#' means data without it will be location... In my example I load the value of counter into A
In the second, I load the actual location number into R0.