]> git.sur5r.net Git - cc65/blobdiff - src/da65/code.c
Fixed _textcolor definition.
[cc65] / src / da65 / code.c
index c94fa24cdc7c3f4f4297ca80c9f639bc6fe23fd0..3fb6a21d32904559e60feb3fc44d7974cf295478 100644 (file)
@@ -7,7 +7,7 @@
 /*                                                                           */
 /*                                                                           */
 /* (C) 2000-2003 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
+/*               Roemerstrasse 52                                            */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
@@ -78,12 +78,12 @@ void LoadCode (void)
     /* Open the file */
     F = fopen (InFile, "rb");
     if (F == 0) {
-        Error ("Cannot open `%s': %s", InFile, strerror (errno));
+        Error ("Cannot open '%s': %s", InFile, strerror (errno));
     }
 
     /* Seek to the end to get the size of the file */
     if (fseek (F, 0, SEEK_END) != 0) {
-        Error ("Cannot seek on file `%s': %s", InFile, strerror (errno));
+        Error ("Cannot seek on file '%s': %s", InFile, strerror (errno));
     }
     Size = ftell (F);
 
@@ -98,10 +98,10 @@ void LoadCode (void)
     }
 
     /* Seek to the input offset and correct size to contain the remainder of
-     * the file.
-     */
+    ** the file.
+    */
     if (fseek (F, InputOffs, SEEK_SET) != 0) {
-        Error ("Cannot seek on file `%s': %s", InFile, strerror (errno));
+        Error ("Cannot seek on file '%s': %s", InFile, strerror (errno));
     }
     Size -= InputOffs;
 
@@ -114,9 +114,9 @@ void LoadCode (void)
     }
 
     /* If the start address was not given, set it so that the code loads to
-     * 0x10000 - Size. This is a reasonable default assuming that the file
-     * is a ROM that contains the hardware vectors at $FFFA.
-     */
+    ** 0x10000 - Size. This is a reasonable default assuming that the file
+    ** is a ROM that contains the hardware vectors at $FFFA.
+    */
     if (StartAddr < 0) {
         if (Size > 0x10000) {
             StartAddr = 0;
@@ -130,10 +130,10 @@ void LoadCode (void)
 
     /* Check if the size is larger than what we can read */
     if (Size == 0) {
-        Error ("Nothing to read from input file `%s'", InFile);
+        Error ("Nothing to read from input file '%s'", InFile);
     }
     if (Size > MaxCount) {
-        Warning ("File `%s' is too large, ignoring %ld bytes",
+        Warning ("File '%s' is too large, ignoring %ld bytes",
                  InFile, Size - MaxCount);
     } else if (MaxCount > Size) {
         MaxCount = (unsigned) Size;
@@ -142,7 +142,7 @@ void LoadCode (void)
     /* Read from the file and remember the number of bytes read */
     Count = fread (CodeBuf + StartAddr, 1, MaxCount, F);
     if (ferror (F) || Count != MaxCount) {
-        Error ("Error reading from `%s': %s", InFile, strerror (errno));
+        Error ("Error reading from '%s': %s", InFile, strerror (errno));
     }
 
     /* Close the file */
@@ -219,6 +219,3 @@ void ResetCode (void)
 {
     PC = CodeStart;
 }
-
-
-