Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > e677bbbdff6d27fe001f15e0ef2bb4cc > files > 129

sdcc-3.0.0-0.fc14.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>5.1.7 Interfacing SDCDB with XEmacs</TITLE>
<META NAME="description" CONTENT="5.1.7 Interfacing SDCDB with XEmacs">
<META NAME="keywords" CONTENT="sdccman">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="sdccman.css">

<LINK REL="previous" HREF="node146.html">
<LINK REL="up" HREF="node140.html">
<LINK REL="next" HREF="node148.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html3005"
  HREF="node148.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html2999"
  HREF="node140.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html2995"
  HREF="node146.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html3001"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html3003"
  HREF="node191.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html3006"
  HREF="node148.html">6. TIPS</A>
<B> Up:</B> <A NAME="tex2html3000"
  HREF="node140.html">5.1 Debugging with SDCDB</A>
<B> Previous:</B> <A NAME="tex2html2996"
  HREF="node146.html">5.1.6 Interfacing SDCDB with</A>
 &nbsp; <B>  <A NAME="tex2html3002"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html3004"
  HREF="node191.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION00617000000000000000"></A><A NAME="3571"></A><A NAME="3572"></A>
<BR>
5.1.7 Interfacing SDCDB with XEmacs
</H2>

<P>
Two files (in emacs lisp) are provided for the interfacing with XEmacs,
sdcdb.el and sdcdbsrc.el. These two files can be found in the $(prefix)/bin
directory after the installation is complete. These files need to
be loaded into XEmacs for the interface to work. This can be done
at XEmacs startup time by inserting the following into your '.xemacs'
file (which can be found in your HOME directory): 
<BR>
<BR><TT>(load-file sdcdbsrc.el)</TT> 
<BR>
<BR>.xemacs is a lisp file so the () around the command is REQUIRED.
The files can also be loaded dynamically while XEmacs is running,
set the environment variable 'EMACSLOADPATH' to the installation bin
directory (&lt;installdir&gt;/bin), then enter the following command ESC-x
load-file sdcdbsrc. To start the interface enter the following command:

<BR>
<BR><I><B>ESC-x sdcdbsrc</B></I>
<BR>
<BR>
You will prompted to enter the file name to be debugged. 
<BR>
<BR>
The command line options that are passed to the simulator directly
are bound to default values in the file sdcdbsrc.el. The variables
are listed below, these values maybe changed as required.

<UL>
<LI>sdcdbsrc-cpu-type '51
</LI>
<LI>sdcdbsrc-frequency '11059200
</LI>
<LI>sdcdbsrc-serial nil
</LI>
</UL>
The following is a list of key mapping for the debugger interface.

<P>
&nbsp;&nbsp;
<BR><TT>;;&nbsp;Current Listing :: </TT>&nbsp;
<BR><TT>;;key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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
list mode </TT>&nbsp;
<BR><TT>;; </TT>&nbsp;
<BR>

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html3005"
  HREF="node148.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html2999"
  HREF="node140.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html2995"
  HREF="node146.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html3001"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html3003"
  HREF="node191.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html3006"
  HREF="node148.html">6. TIPS</A>
<B> Up:</B> <A NAME="tex2html3000"
  HREF="node140.html">5.1 Debugging with SDCDB</A>
<B> Previous:</B> <A NAME="tex2html2996"
  HREF="node146.html">5.1.6 Interfacing SDCDB with</A>
 &nbsp; <B>  <A NAME="tex2html3002"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html3004"
  HREF="node191.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

2011-03-20
</ADDRESS>
</BODY>
</HTML>