Hi all,
I am new to c55x programming, I am tring to understand one ASM code, can
anyone explain meaning of instructions in brief.
MOV XAR1,dbl(@#02h)
MOV XAR0,dbl(@#00h)
MOV dbl(@#00h),XAR
MOV dbl(@#02h),XAR3
I am confused with term like dbl(@#02h).
ASM code: meaning of instructions
Started by ●August 23, 2008
Reply by ●August 24, 20082008-08-24
Rahul-
> I am new to c55x programming, I am tring to understand
> one ASM code, can anyone explain meaning of instructions
> in brief.
>
> MOV XAR1,dbl(@#02h)
> MOV XAR0,dbl(@#00h)
> MOV dbl(@#00h),XAR
> MOV dbl(@#02h),XAR3
>
> I am confused with term like dbl(@#02h).
'dbl' means to move two (2) 16-bit words, or 32 bits. Note that high word is stored first in memory, followed by low
word.
-Jeff
> I am new to c55x programming, I am tring to understand
> one ASM code, can anyone explain meaning of instructions
> in brief.
>
> MOV XAR1,dbl(@#02h)
> MOV XAR0,dbl(@#00h)
> MOV dbl(@#00h),XAR
> MOV dbl(@#02h),XAR3
>
> I am confused with term like dbl(@#02h).
'dbl' means to move two (2) 16-bit words, or 32 bits. Note that high word is stored first in memory, followed by low
word.
-Jeff
Reply by ●August 28, 20082008-08-28
Hi,
In the code provided by you, as the source or destination register(XAR) is
of 24 bit, it will load or store least significant 24 bits.
the term "dbl(@#02h)" implies, the base address is stored in SP or DP
depending on the CPL bit in status registers, and from that #02 is the
offset.
Regards,
Chandrakala.
On Sat, Aug 23, 2008 at 7:08 PM, wrote:
> Hi all,
> I am new to c55x programming, I am tring to understand one ASM code, can
> anyone explain meaning of instructions in brief.
>
> MOV XAR1,dbl(@#02h)
> MOV XAR0,dbl(@#00h)
> MOV dbl(@#00h),XAR
> MOV dbl(@#02h),XAR3
>
> I am confused with term like dbl(@#02h).
>
>
In the code provided by you, as the source or destination register(XAR) is
of 24 bit, it will load or store least significant 24 bits.
the term "dbl(@#02h)" implies, the base address is stored in SP or DP
depending on the CPL bit in status registers, and from that #02 is the
offset.
Regards,
Chandrakala.
On Sat, Aug 23, 2008 at 7:08 PM, wrote:
> Hi all,
> I am new to c55x programming, I am tring to understand one ASM code, can
> anyone explain meaning of instructions in brief.
>
> MOV XAR1,dbl(@#02h)
> MOV XAR0,dbl(@#00h)
> MOV dbl(@#00h),XAR
> MOV dbl(@#02h),XAR3
>
> I am confused with term like dbl(@#02h).
>
>