Gast
#75476
Hallo,
folgendes Problem:
mov #1,&dst
mov #2,&src
ADD.W &src,&dst ; 2+1=3
Assembliert in IAR Assembler=> Pseudo.a43 (target:msp430x147)
mspgcc-20030506.exe (W32) geladen, Installiert:
msp430-objcopy -I binary -B msp:14 pseudo.a43 test.tmp
msp430-objdump -m msp:14 -DS test.tmp>test.txt
rm test.tmp
Auszug test.txt:
8000: 92 43 02 02 mov #1, &0x0202 ;r3 As==01
8004: a2 43 00 02 mov #2, &0x0200 ;r3 As==10
8008: 92 52 00 02 rla &0x0200 ;
800c: 02 02
Wenn mich nicht alles täuscht ist das falsch, da 2*2=4 ungleich
2+1=3 ist.
Wer überzeugt mich vom Gegenteil?
Mit freundlichen Grüßen,
Eric