Re: Beginner question: 320LF2407 header file



Hi Alex,

> 1. The proc. specific variables sometimes have different names in the
> documentation and the header file.
> 2. the x24x_app.h file mixes in definitions for the 240 as well as the
> 240x! These are not protected with any conditional assembly, and some
> of the 240 variables have the same name as the documentation for the
> 2407 variables! I figured this out the more-or-less hard way.
change the header file, or I can send you mine. It is probably not
perfect but it works for me

> Where can I get a good, official include file for the 2407/2406?
You should have some examples included in EzDSP package or look on TI
web site
http://focus.ti.com/general/docs/university/univ.tsp?templateId=5807&navigationId=11083&path=templatedata/cm/univgen/data/univ_exchange_dsp


> Another question I have is that something in the assy or link process
> seems to automagically shift a user defined "variable name" right 7 in
> a ldp instruction, but if a constant is defined with equ or set, it
> behaves as documented (you have to do the >>7)
>
> I pored over the assy tools docs but cannot see where they tell you
> that the ldp instruction is treated differently.. can anyone point me
> to a clear explanation of this somewhere?

..bss tells the preprocesor and the assembler how to handle it, .set or
..equ is basicly just alias. If you use .set or .equ for variable
declaration beware, because you don't reserve space in RAM (the linker
is not aware of any variables). I prefer using .bss for variable
declaration

Regards,
Mitja

.



Relevant Pages

  • Re: Batch file and MFC (Properly Terminating Application)
    ... Why not create a header file ... documentation, either at the definition site or the receiving site. ... EXCEPTION to this rule is handlers for thread messages sent to secondary UI ... afx_msg void functionname; ...
    (microsoft.public.vc.mfc)
  • Re: Bug in wmcodecconst.h
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... "Jeremy Noring" wrote in message ... in the WMFSDK 9.5 documentation, ... > Files," it states to include the header file "wmcodecifaces.h." ...
    (microsoft.public.windowsmedia.sdk)
  • RE: using CryptUIWizExport / CryptUIWizImport
    ... The updated header file has not yet ... been released and is planned to be released with the Windows Server 2003 SP1 ... The documentation team has been notified of this issue. ... > I am trying to use functions CryptUIWizExport / CryptUIWizImport which are ...
    (microsoft.public.platformsdk.security)
  • Re: best way to integrate java and C code
    ... >it which results in a C header file, then implement it to call your C ... >for documentation and tutorial, as there're much more (e.g. accessing Java ... Coaching, problem solving, economical contract programming. ...
    (comp.lang.java.programmer)
  • Re: Redcode language oversight/mistake: "for" can be used as a label; little bit weird, confusing an
    ... "Define FOR and ROF as pseudo instructions just like EQU, ORG and END". ... And to make the documentation even better include something like: ...
    (rec.games.corewar)