.data
Vdata .byte 7
Wdata .word 10,-1
Xdata .space 2
Ydata .string "BA", "BY"
Zdata .word 99h
.sect "mysect"
Dest .space 14
mysect is a section i have created assigned to the memory location 0x3400. I have created this space of 14 bytes inside of it. What I want to do is to move all the contents of the address labels declared above (Vdata to Zdata) to the 14 bytes space. Here is what I have tried:
mov.b Vdata, Dest
mov.w Wdata, Dest
mov.w Xdata, Dest
mov.w Ydata, Dest
mov.w Zdata, Dest
It only however updates the start of the memory location (0x3400).
UPDATE: I have tried other solutions but it does not work. I was wondering if someone had the code on how to perform what I need to do(move all values in the address labels to the space in mysect section).