File tree 6 files changed +14
-14
lines changed
6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ Breakpoints_v2.xcbkptlist
7
7
* .lst
8
8
* .s19
9
9
* .sym
10
+ Fwd_refs
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ int main(int argc, char** argv)
35
35
{
36
36
char * * np ;
37
37
char * pc ;
38
- //FILE *fopen();
39
38
int j = 0 ;
40
39
41
40
if (argc < 2 ){
@@ -124,7 +123,7 @@ void initialize(void)
124
123
{
125
124
int i = 0 ;
126
125
127
- #ifdef DEBUG
126
+ #ifdef DEBUG_PRINT
128
127
printf ("Initializing\n" );
129
128
#endif
130
129
Err_count = 0 ;
@@ -164,7 +163,7 @@ void initialize(void)
164
163
165
164
void re_init (void )
166
165
{
167
- #ifdef DEBUG
166
+ #ifdef DEBUG_PRINT
168
167
printf ("Reinitializing\n" );
169
168
#endif
170
169
Pc = 0 ;
@@ -211,7 +210,7 @@ void open_files(void)
211
210
void make_pass (void )
212
211
{
213
212
char * pc ;
214
- #ifdef DEBUG
213
+ #ifdef DEBUG_PRINT
215
214
printf ("Pass %d\n" ,Pass );
216
215
#endif
217
216
while ( fgets (Line ,MAXBUF ,Fd ) ){
@@ -266,7 +265,7 @@ int parse_line(void)
266
265
}
267
266
* pcto = EOS ;
268
267
269
- #ifdef DEBUG
268
+ #ifdef DEBUG_PRINT
270
269
printf ("Label-%s-\n" ,Label );
271
270
printf ("Op----%s-\n" ,Op );
272
271
printf ("Operand-%s-\n" ,Operand );
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ int eval(void)
48
48
int left ,right ; /* left and right terms for expression */
49
49
char o ; /* operator character */
50
50
51
- #ifdef DEBUG
51
+ #ifdef DEBUG_PRINT
52
52
printf ("Evaluating %s\n" ,Optr );
53
53
#endif
54
54
Force_byte = NO ;
@@ -79,7 +79,7 @@ int eval(void)
79
79
}
80
80
81
81
Result = left ;
82
- #ifdef DEBUG
82
+ #ifdef DEBUG_PRINT
83
83
printf ("Result=%x\n" ,Result );
84
84
printf ("Force_byte=%d Force_word=%d\n" ,Force_byte ,Force_word );
85
85
#endif
@@ -199,7 +199,7 @@ int get_term(void)
199
199
val = 0 ;
200
200
201
201
if (minus ) val = - val ;
202
- #ifdef DEBUG
202
+ #ifdef DEBUG_PRINT
203
203
printf ("Term=%x\n" ,val );
204
204
205
205
#endif
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void fwdreinit(void)
36
36
lseek (Forward ,0L ,ABS ); /* rewind forward refs */
37
37
read (Forward ,& Ffn ,sizeof (Ffn ));
38
38
read (Forward ,& F_ref ,sizeof (F_ref )); /* read first forward ref into mem */
39
- #ifdef DEBUG
39
+ #ifdef DEBUG_PRINT
40
40
printf ("First fwd ref: %d,%d\n" ,Ffn ,F_ref );
41
41
#endif
42
42
}
@@ -56,17 +56,17 @@ void fwdmark(void)
56
56
void fwdnext (void )
57
57
{
58
58
ssize_t stat = read (Forward ,& Ffn ,sizeof (Ffn ));
59
- #ifdef DEBUG
59
+ #ifdef DEBUG_PRINT
60
60
printf ("Ffn stat=%ld " ,stat );
61
61
#endif
62
62
stat = read (Forward ,& F_ref ,sizeof (F_ref ));
63
- #ifdef DEBUG
63
+ #ifdef DEBUG_PRINT
64
64
printf ("F_ref stat=%ld " , stat );
65
65
#endif
66
66
if ( stat < 2 ){
67
67
F_ref = 0 ;Ffn = 0 ;
68
68
}
69
- #ifdef DEBUG
69
+ #ifdef DEBUG_PRINT
70
70
printf ("Next Fwd ref: %d,%d\n" ,Ffn ,F_ref );
71
71
#endif
72
72
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ int install(char* str, int val)
24
24
return (NO );
25
25
}
26
26
/* enter new symbol */
27
- #ifdef DEBUG
27
+ #ifdef DEBUG_PRINT
28
28
printf ("Installing %s as %d\n" ,str ,val );
29
29
#endif
30
30
np = (struct nlist * ) alloc (sizeof (struct nlist ));
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ void eword(int wd)
85
85
*/
86
86
int emit (int byte )
87
87
{
88
- #ifdef DEBUG
88
+ #ifdef DEBUG_PRINT
89
89
printf ("%2x @ %4x\n" ,byte ,Pc );
90
90
#endif
91
91
if (Pass == 1 ){
You can’t perform that action at this time.
0 commit comments