... | ... |
@@ -12,6 +12,7 @@ WITH REGARD TO THIS SOFTWARE. |
12 | 12 |
*/ |
13 | 13 |
|
14 | 14 |
#define TRIM 0x0100 |
15 |
+#define LENGTH 0x10000 - TRIM |
|
15 | 16 |
|
16 | 17 |
typedef unsigned char Uint8; |
17 | 18 |
typedef signed char Sint8; |
... | ... |
@@ -28,7 +29,7 @@ typedef struct { |
28 | 29 |
} Label; |
29 | 30 |
|
30 | 31 |
typedef struct { |
31 |
- Uint8 data[256 * 256], mlen; |
|
32 |
+ Uint8 data[LENGTH], mlen; |
|
32 | 33 |
Uint16 ptr, length, llen; |
33 | 34 |
Label labels[512]; |
34 | 35 |
Macro macros[256]; |
... | ... |
@@ -391,7 +392,12 @@ cleanup(char *filename) |
391 | 392 |
continue; /* Ignore capitalized labels(devices) */ |
392 | 393 |
else if(!p.labels[i].refs) |
393 | 394 |
fprintf(stderr, "--- Unused label: %s\n", p.labels[i].name); |
394 |
- printf("Assembled %s(%d bytes), %d labels, %d macros.\n", filename, (p.length - TRIM), p.llen, p.mlen); |
|
395 |
+ printf("Assembled %s in %.2fkb(%.2f%% used), %d labels, %d macros.\n", |
|
396 |
+ filename, |
|
397 |
+ (p.length - TRIM) / 1000.0, |
|
398 |
+ p.length / 655.360, |
|
399 |
+ p.llen, |
|
400 |
+ p.mlen); |
|
395 | 401 |
} |
396 | 402 |
|
397 | 403 |
int |