I have stored the string '0123456789', so now the ASCII value of each character is stored as one byte in the memory, How can add each consecutive 2 bytes like the following:
0+1->1, 1+2->2........etc
“0123456789”
30 31 32 33 34 35 36 37 38 39
00000000 00000001 00000010 00000011 00000100 00000101 00000110 00000111 00001000 00001001
00010001
00001111
00001101
00001011
00001001
00000111
00000101
00000011
00000001
00000000
My first try was something like this
ORG $1000
START: DC.L '0123456789'
MOVE.L #$1000, A1
MOVE.B (A1)+, D0
MOVE.B (A1)+, D1
MOVE.B (A1)+, D2
MOVE.B (A1)+, D3
MOVE.B (A1)+, D4
MOVE.B (A1)+, D6
MOVE.B (A1)+, D6
MOVE.B (A1)+, D7
SIMHALT
END START