STM8 is little endian - right?
I have started writing some STM8 code in assembler and happened upon a memory assignment issue I can't explain.
Globally I have
segment 'ram0'
Test_Word ds.w
in code:
ldw X, #$48
ldw Test_Word , X
The two bytes of memory at location Test_Word is 00 $48
This appears to be Big Endian memory assignment
if in code ...
ld A, #5
ld Test_Word , A
The two bytes of memory at location Test_Word is 05 $48
To me this is very strange.
Can someone explain why the instructions
ldw X, #$48
ldw Test_Word , X
Did not populate memory as $48 00
Thanks in advance for any insight.
Joe
