//
int d_print(void)
{
- char prntstr[LNSIZ]; // String for PRINT directive
- char format[LNSIZ]; // Format for PRINT directive
- int formatting = 0; // Formatting on/off
- int wordlong = 0; // WORD = 0, LONG = 1
- int outtype = 0; // 0:hex, 1:decimal, 2:unsigned
-
- VALUE eval; // Expression value
- WORD eattr; // Expression attributes
- SYM * esym; // External symbol involved in expr.
+ char prntstr[LNSIZ]; // String for PRINT directive
+ char format[LNSIZ]; // Format for PRINT directive
+ int formatting = 0; // Formatting on/off
+ int wordlong = 0; // WORD = 0, LONG = 1
+ int outtype = 0; // 0:hex, 1:decimal, 2:unsigned
+
+ VALUE eval; // Expression value
+ WORD eattr; // Expression attributes
+ SYM * esym; // External symbol involved in expr.
TOKEN r_expr[EXPRSIZE];
while (*tok != EOL)
}
printf("\n");
- println("\n");
+// println("\n");
return 0;
static char buf[IMAGESIZ]; // Buffer for numbers
static long unused; // For supressing 'write' warnings
-static char * month[16] = { "", "Jan", "Feb", "Mar",
- "Apr", "May", "Jun", "Jul",
- "Aug", "Sep", "Oct", "Nov",
- "Dec", "", "", "" };
+static char * month[16] = {
+ "", "Jan", "Feb", "Mar",
+ "Apr", "May", "Jun", "Jul",
+ "Aug", "Sep", "Oct", "Nov",
+ "Dec", "", "", ""
+};
//
// Eject the Page (Print Empty Lines), Reset the Line Count and Bump the Page Number
void scopy(char *dest, char *src, int len)
{
if (len < 0)
- len = 1000; // Some large number
+ len = 1000; // Some large number [Shamus: wha...?]
while (len-- && *src)
*dest++ = *src++;
{
unsigned int length;
- if (list_fname != NULL) // Create listing file, if necessary
+ // Create listing file, if necessary
+ if (list_fname != NULL)
list_setup();
length = strlen(ln);
tok += 2;
- if (ejectok && (subflag || pageno > 1)) // Always eject on pages 2+
+ // Always eject on pages 2+
+ if (ejectok && (subflag || pageno > 1))
eject();
subflag = 1;
#include <time.h>
#include "rmac.h"
-#define BOT_MAR 1 // #blank lines on bottom of page
-#define IMAGESIZ 200 // Max size of a line of text
-#define TITLESIZ 200 // Max size of a title
-#define LN_COL 0 // Column for line numbers
-#define LOC_COL 7 // Location ptr
-#define DATA_COL 17 // Data start (for 20 chars, usually 16)
-#define DATA_END (DATA_COL+20) // End+1th data column
-#define TAG_COL 38 // Tag character
-#define SRC_COL 40 // Source start
+#define BOT_MAR 1 // #blank lines on bottom of page
+#define IMAGESIZ 200 // Max size of a line of text
+#define TITLESIZ 200 // Max size of a title
+#define LN_COL 0 // Column for line numbers
+#define LOC_COL 7 // Location ptr
+#define DATA_COL 17 // Data start (for 20 chars, usually 16)
+#define DATA_END (DATA_COL+20) // End+1th data column
+#define TAG_COL 38 // Tag character
+#define SRC_COL 40 // Source start
// Globals, externals etc
-extern char *list_fname;
+extern char * list_fname;
extern int listing;
extern int pagelen;
extern int nlines;
// Jaguar Jump Condition Names
char condname[MAXINTERNCC][5] = {
"NZ", "Z", "NC", "NCNZ", "NCZ", "C", "CNZ", "CZ", "NN", "NNNZ", "NNZ",
- "N", "N_NZ", "N_Z ", "T", "A", "NE", "EQ", "CC", "HS", "HI", "CS", "LO",
+ "N", "N_NZ", "N_Z", "T", "A", "NE", "EQ", "CC", "HS", "HI", "CS", "LO",
"PL", "MI", "F"
};
warn("MOVEI following JUMP, inserting NOP to fix your BROKEN CODE");
}
else
- warn("MOVEI following JUMP");
+ warn("MOVEI immediately follows JUMP");
}
if ((challoc - ch_size) < 4)
#define MAJOR 1 // Major version number
#define MINOR 2 // Minor version number
-#define PATCH 9 // Patch release number
+#define PATCH 10 // Patch release number
#endif // __VERSION_H__