cdt.fix Modifications to CDT for the C64 - 5/8/88 CDT (C Debugging Tool), by Alan Yorinks, is a program (found elsewhere in the data libraries as CDT128.ARC) written with C-Power (Power C) and designed to run under the shell. It provides several ML monitor-type functions useful for debugging C programs. The program was written for and tested on the C128 only, although the author believed it could be used on the C64 as well. I have now modified it and tested it on the C64; this document describes the minor corrections required to allow CDT to run on the C64. The main purpose of these changes is to omit the 'bank' option required on the C128. This option is not used on the C64. The following changes need to be made to the source files listed before compiling: dbug.h ------ The last line should read: #define POKE(A,V) ... -- instead of: #define POKE(A) ... cdt.c ----- In the section with the switch clause, there are five statements with the format: if ( (argc - count) < ?) where ? represents a number (2, 3, or 4). This number needs to be decreased by one (to 1, 2, or 3) in each of the five statements. getargs.c --------- The four lines which read: #ifndef C64 are in the wrong place. Each needs to be moved immediately above the preceding 'if' line. For example, in the 'case DUMP & DASMBL' section, the order should be: EADDR(dsdmp) = ... #ifndef C64 (new location) if ( (rc = strlen ... (open brace) return ARGERR; (closed brace) (#ifndef C64 was here; needs to be moved up) BANK(dsdmp) = ... #endif Please send any questions or comments to me via EasyPlex. Steve Grace 70726,306
Amiga7878