Hi Stano,
Thanks for your suggestions but it really didn't help me, probably because I don't think I posed my question correctly.
I composed another small test program:
ORG RAMStart
; Insert here your data definition.
multiplicand DS.W 1 ; Memory location $2000:$2001
multiplier DS.W 1 ; Memory location $2002:$2003
product DS.W 2 ; Memory location $2004:$2005:$2006:$2007
; code section
ORG ROMStart
Entry:
_Startup:
LDS #RAMEnd+1 ; initialize the stack pointer
CLI ; enable interrupts
; Test Code
MOVW #$FFFF,multiplicand ; Decimal 65535 -> "multiplicand"($2000:$2001)
MOVW #$FFFF,multiplier ; Decimal 65535 -> "multiplier" ($2002:$2003)
LDD multiplicand ; "multiplicand" -> Accu D
LDY multiplier ; "multiplier" -> Accu Y
EMUL ; (D) x (Y) -> Y:D
STY product ; Result high word -> "product"($2004:$2005) ; should be #$FFFE
STD product+2 ; Result low word -> "product+2"($2006:$2007) ; should be #$0001
When I use the debugger and step through the program everything works as it should. The registers have the correct values and the memory locations have the correct values. My problem is with the "Data" window.
In that window it shows:
multiplicand -1 int
multiplier -1 int
product <4> array [2] of int
var00001 16384 int
It looks to me that in the Data window it is displaying the variables as signed words. How can I change that?
Regards,
Robert