I have this code:
loop2
move.b (a4)+,d3 * moving the morse code array input to d3
muls #5,d3
add.b $d3(a6),d3 * moving the character in morse code array to d4
move.b d3,d4
cmp.b #dot,d4
Here, I am accessing an array starting at a4
. I am taking an element of the array and multiplying it with 5 to move to the memory location where I have the desired element.
a6
represents the starting point of an array which contains certain character.
the statement $d3(a6),d3
wokrs but the code gets faulty
as i know the code d3(a6),d3 should be correct but it show me an error. how should i do it ?