Hi everyone,
I'm fairly new to the C166 architecture and I am trying to debug some old C166 assembler code, but I am having a hard time understanding how the extended sequence command works exactly.
Here is the code:
mov r4, word_C3324 mov r5, word_C3326 mov word_C1A2, r4 mov word_C1A4, r5 mov r4, word_4484 mov r5, word_4486 exts r5, #1 movb rl3, [r4] movbz r2, rl3 add r4, #1 addc r5, #0 exts r5, #1 movb rl3, [r4] movbz r4, rl3 shl r4, #8 add r2, r4 mov word_C1E8, r2 mov r4, #2 or word_F33C, r4
Can someone help me understand what exactly is happening here?
Thank you.