RE: [motoroladsp] CodeWarrior problem
The following function seems to work as advertised!!!
;in test.asm
;**********************************************
GLOBAL
FtestDivInt
; Word16 FtestDivInt(Word32 * dividend, Word16
divisor);
;Inputs:
; R2 => dividend, y0
= divisor
;Returns:
; y0 = quotient
;Example function call in C
; Word16 temp16;
; Word32 temp32;
;...
; temp16 = 7;
; temp32 = 21;
; temp16 =
testDivInt(&temp32, temp16);
; temp16 ==3 at this point.
;
FtestDivInt:
move x:(r2+1),b
move x:(r2),b0
move y0,x0
asl
b
move b,y1
abs b
eor x0,y1
bfclr #$0001,SR
rep
#$10
div x0,B
BGE _DONE
neg B
_DONE:
move B0,y0
rts
This was executed on the 56F807 part. and I did get 3 in
y0.
JJ.
-----Original Message-----
From: Richard Ki [mailto:r...@saeautom.sk]
Sent: Monday, August 26, 2002 9:31 AM
To: m...@yahoogroups.com
Subject: [motoroladsp] CodeWarrior problem
I have a following problem with CodeWarrior
(V.5.XX) debugger:
There is not possible to set a breakpoint to few function
(at source
code begin) in some of project sources. (Please note that
this is not a
case when code is deadstipped because it is not used!). The
minus ('-')
characters are displayed at left of debugger view (so code
is generated
for that lines) but there is not possible to set a
breakpoint on that
code. Code is generated and executed through that parts
OK...). When I
switched debug view to 'Mixed' or
'Assembler' mode and next tried insert
a breakpoint there, a message "No symbolics data for
debugger" was
displayed. Looking to the .elf file I can find a symbols
generated for
that functions. I tried rebuild project, delete generated
files and make
rebuild and much more without success. My project is quite
extensive and
this problems starts after a last enlargement of it
probably .
Please, does anybody know what is a
problem?
Richard Kis
SAE - Automation, s.r.o.
------------------------ Yahoo! Groups Sponsor
---------------------~-->
4 DVDs Free +s&p Join Now
http://us.click.yahoo.com/pt6YBB/NXiEAA/mG3HAA/PNArlB/TM
---------------------------------~->
_____________________________________
Note: If you do a simple "reply" with your email
client, only the author of this message will receive your answer. You need
to do a "reply all" if you want your answer to be distributed to the
entire group.
_____________________________________
About this discussion group:
To Join: m...@yahoogroups.com
To Post: m...@yahoogroups.com
To Leave: m...@yahoogroups.com
Archives: http://www.yahoogroups.com/group/motoroladsp
More Groups: http://www.dsprelated.com/groups.php3
" TARGET="_blank">http://docs.yahoo.com/info/terms/
|