In infenion Instrction set manual,there are 2 instrctions as follow, MOV Rwn, #data4 E0 #n 2 MOV reg, #data16 E6 RR ## ## 4 where Rwn refers to Word GPR (R0, R1, …, R15); reg refers to SFR/ESFR or GPR In my BIN file there is one machine code"E6 RR ####",for example"E6 F9 00 00",after being disasembled by IDA,the code is transfered to"MOV R9,#0".But when I used KEIL to build it,it is changed into "E0 09",how can I get it back into "E6 F9 00 00"using Keil,Can anyone give me some advice or help?Thanks a lot! wangwei
"Perhaps there's a way to force the data width to 16 bits.A really crude and ugly way to get the desired instruction would be to use a 16-bit value (MOV R9, #8000)" The idea is very good,but I have tried it and it has no sense.Finally,an advice from a kindly friend of Keil technical support in Asia help me to settle the problem.Itis using the format as "MOV R9,#DATA16 0X00" can get the "E6 F9 00 00"16 bits opcode. I am very appreciate of all the kindly help. wangwei