Write the assembly code for the following MSP 430 machine co
Write the assembly code for the following MSP 430 machine code stored in the specified memory locations:
Memory Address: Machine Code:
0x801A: 430E
0x801C: 535E
0x801E: F07E
0x8020: 000F
Solution
mov.w #0,r14
add.b #1,r14
and.b #0x0f,r14
push #0x000e
–sub.w #1, 0(r1)
–jne 0x8026 (0x802C-3x2)
–mov.w @r1+,r15
(pop.w r15
–jmp 0x801c
