@@ -80,20 +80,19 @@ int fixup_ptrs() {
80
80
ptr [nlines ++ ] = filesize ;
81
81
82
82
/* Double-check size of .BA file */
83
- fprintf (stderr , "file size is 0x%x\n" , filesize );
84
83
if ( filesize >= 0x10000 ) {
85
- fprintf (stderr , "Fatal Error. Program too large to fit in 64K RAM.\n" );
86
- fprintf (stderr , "Due to 16-bit pointers in BASIC, this cannot work.\n" );
84
+ fprintf (stderr , "Fatal Error. %'d bytes is too large to fit in 64K RAM.\n" , filesize );
85
+ fprintf (stderr , "Due to 16-bit pointers in BASIC, this can never work.\n" );
87
86
exit (1 );
88
87
}
89
88
else if ( filesize >= 0x8000 ) {
90
- fprintf (stderr , "Warning. Program too large to fit in 32K RAM.\n" );
89
+ fprintf (stderr , "Warning. %'d bytes is too large to fit in 32K RAM.\n" , filesize );
91
90
fprintf (stderr , "The output cannot run on any standard hardware.\n" );
92
91
if ( filesize + offset >= 0x10000 )
93
92
offset = 0 ;
94
93
}
95
94
else if ( filesize >= 0x6000 ) {
96
- fprintf (stderr , "Notice. Program too large to fit in 24K RAM.\n" );
95
+ fprintf (stderr , "Notice. %'d bytes is too large to fit in 24K RAM.\n" , filesize );
97
96
fprintf (stderr , "The output cannot run on a standard Tandy 200.\n" );
98
97
if ( filesize + offset >= 0x10000 )
99
98
offset = 0x8001 ;
0 commit comments