* src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
authormaartenbrock <maartenbrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 2 Nov 2005 16:55:15 +0000 (16:55 +0000)
committermaartenbrock <maartenbrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 2 Nov 2005 16:55:15 +0000 (16:55 +0000)
  (_asxxxx_mapping): added org directive for future enhancements

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3929 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/asm.c

index 5af08de5fb3758fa5d918740f6a51b04e22fe621..cc0958d58e4ed1f088043d2512af3f9e68d93c2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
+2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
+         (_asxxxx_mapping): added org directive for future enhancements
+
 2005-11-01 Borut Razem <borut.razem AT siol.net>
 
        * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
          enabled sockets on WIN32
-       * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized varaibles
+       * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
 
 2005-10-31 Borut Razem <borut.razem AT siol.net>
 
index 6fc273a5f773ee8b79fe9f881450978cc522da37..73c545c3832542c5f1096e45932bb3163c3caff8 100644 (file)
--- a/src/asm.c
+++ b/src/asm.c
@@ -259,6 +259,7 @@ printILine (iCode *ic)
   static char verbalICode[1024];
   FILE *tmpFile;
   iCodeTable *icTab=getTableEntry(ic->op);
+  int ret;
 
   if (INLINEASM == ic->op)
     return "inline";
@@ -281,7 +282,8 @@ printILine (iCode *ic)
    * Actually the temporary file is only closed. It will be
    * removed by rm_tmpfiles().
    */
-  assert(!fclose(tmpFile));
+  ret = fclose(tmpFile);
+  assert(!ret);
   deleteSetItem(&tmpfileSet, tmpFile);
 
   /* kill the trailing NL */
@@ -388,6 +390,7 @@ static const ASM_MAPPING _asxxxx_mapping[] =
   {"hihil","(%05d$ >> 16)"},
   {"hihihil","(%05d$ >> 24)"},
   {"equ","="},
+  {"org", ".org %04X"},
   {NULL, NULL}
 };