/[gxemul]/trunk/experiments/rssb_as.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/experiments/rssb_as.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by dpavlin, Mon Oct 8 16:17:48 2007 UTC revision 10 by dpavlin, Mon Oct 8 16:18:27 2007 UTC
# Line 24  Line 24 
24   *  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF   *  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *  $Id: rssb_as.c,v 1.2 2005/03/08 23:10:10 debug Exp $   *  $Id: rssb_as.c,v 1.3 2005/06/20 05:52:45 debug Exp $
28   *   *
29   *  A simple assembler for URISC ("reverse subtract and skip on borrow").   *  A simple assembler for URISC ("reverse subtract and skip on borrow").
30   */   */
# Line 82  void add_symbol(char *symbol, uint32_t a Line 82  void add_symbol(char *symbol, uint32_t a
82                  exit(1);                  exit(1);
83          }          }
84    
85          strcpy(s->name, symbol);          strlcpy(s->name, symbol, MAX_SYMBOL_LEN);
         s->name[strlen(symbol)] = 0;  
86          s->addr = addr;          s->addr = addr;
87    
88          if (debug > 1)          if (debug > 1)

Legend:
Removed from v.9  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26