Dear CarlFST60L,
Tried the following 3 cases for a 9S08SH8 target:
uchar test1[32] = {
0
};
......
asm {
ldhx #@test1
lda 5000,x
ldhx #5
lda @test1,x
ldhx #5
lda @test1:2,x
}
Produced
14: asm {
15: ldhx #@test1
0000 450000 [3] LDHX @test1
16: lda 5000,x
0003 d61388 [4] LDA 5000,X
17: ldhx #5
0006 450005 [3] LDHX #5
18: lda @test1,x
0009 d60000 [4] LDA @test1,X
19: ldhx #5
000c 450005 [3] LDHX #5
20: lda @test1:2,x
000f d60002 [4] LDA @test1:2,X
21:
22:
23: }
which looks OK. Simulation also looks correct.
Using CW for microcontrollers V6.2. & whatever patches are current (6.2.2 I think!)
Have I missed something?
bye
Message Edited by pgo on 2009-07-08 01:55 PM