text stringlengths 0 99.6k |
|---|
*/ |
nodays (month, year) |
unsigned month, year; |
* calculate day of week for date |
* ------------------------------------ |
* in: month, day, year |
* out: day of week (0=Sun ... 6=Sat) |
* ==================== ============== |
*/ |
weekday (month, day, year) |
unsigned month, day, year; |
ay %= 7; |
wkday += refwkday; |
if (wkday > 6) |
wkday -= 7; |
return (wkday); |
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 statem ts. |
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 EasyPl . |
Steve Grace |
70726,306 |
CardFile.64 is a simple database |
program written in BASIC and listable. |
Designed for a monochrome monitor, |
but you can make color changes to |
suit yourself. User Friendly. |
Written for Tape Users, but simple |
changes in the program can modify it |
for disk users. Uses sequential |
files. |
Features include: display records |
in memory, add records,update records |
and search; delete records, load |
files, save files, checking for |
available memory at any time so that |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.