home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
OSBORNE
/
EXTIME89.LBR
/
EXTIME.DZC
/
EXTIME.DOC
Wrap
Text File
|
2000-06-30
|
1KB
|
41 lines
W. vanRiper 17 June 1985
*** extime ***
This is a short routine that allows you to set the date and time without
adding punctuation characters. I constantly crash my system with crazed
assembly routines and hate to go through the business of setting the time
with the Osborne-supplied utility. This file is only 1k. I use it with
George Peace's wonderful EXCLOCK.
usage: extime<ret>
displays: enter month: 06 <- you enter 2 digits
day: 17 <- two more
hour: 03 <- two more
minute: 55 <- two more
To reassemble you'll need Richard Conn's SYSLIB, either 2.X or 3.X. It is
currently set up for 1985, and to change this you'll need to change the
number of days since 1/1/78, which is the way DRI always calculates time.
To patch the .COM file:
locations 01EA,01EB currently contain FD,09
which is the offset to 1985
to get the offset to 1986:
add 365 (016D) to this, giving 0B6A and
change FD,09 to 6A,0B for 1986
to get the offset to 1987:
add another 365 for 1987, etc.
By the way, there is a default date in CPM3.SYS which is 01/01/82 for my
system. You can change this with DU or a similar utility so that the
new date is in the SCB when the system boots. There is no use for this
unless you change it every day....
y so that the
new date is in the SCB when the system boots. There is no use for this
unl