
Apple II Computer Info
Note that for this to work in a IIe, the SmartWatch must be under the EF
ROM, not the CD ROM. (The program would have to be patched to refer to
D000, D001 and D004 if the SmartWatch is under the CD ROM.)
In case anyone is interested, here is a source listing of the program
(which may need a little tidying up to actually work, e.g. by removing
the spaces in the HEX line). This is for the Merlin assembler.
* SmartWatch I/O lines are as follows:
* A2 = read/-write
* A0 = data to SmartWatch
* D0 = data from SmartWatch
* The following locations trigger the desired one-bit access,
* assuming the SmartWatch is under the chip addressed when
* accessing the range E000-E00F.
* Read E000: write a zero
* Read E001: write a one
* Read E004: read (data returned in bit 0)
ORG $300
LDX #0
SEI
BIT E004
BYTELOOP: LDA DATA,X
LDY #8
BITLOOP: LSR
BCS WRITE1
BIT E000
DEY
BNE BITLOOP
BEQ NEXTBYTE
WRITE1: BIT E001
DEY
BNE BITLOOP
NEXTBYTE: INX
CPX #16
BCC BYTELOOP
CLI
RTS
ORG $330
DATA: HEX C5 3A A3 5C C5 3A A3 5C
HEX 00 00 00 00 16 01 10 99
A final point: this program can easily be modified to set the SmartWatch
to an arbitrary date and time. The last eight bytes are the time
written to the chip, which are in BCD (binary coded decimal). The
registers are in the following order:
Tenths and hundredths of seconds
Seconds
Minutes
Hours (leave the top three bits clear for 24-hour mode)
Apple II Computer Technical Information : Apple II Family Hardware Info
ftp://ground.ecn.uiowa.edu/2/apple2/miscinfo/hardware : May 2001 : 317 of 572
Comentarios a estos manuales