Commit Graph

25 Commits

Author SHA1 Message Date
Joshua Bell 7bbc96924b Add SETUP.SYSTEM and build .SETUP files
This is an alternate approach proposed by Sean Nolan in 1987 which
allows placing the driver files in a subdirectory of the root volume
to avoid clutter and file ordering issues. Only a SETUP.SYSTEM file is
needed at the top level, and the drivers go into a SETUPS/ directory.

All drivers here (except QUIT.SYSTEM and SETUP.SYSTEM itself) have
alternate forms built into the /DRIVERS/SETUPS/ directory as XYZ.SETUP
instead of XYZ.SYSTEM. If you choose to use SETUP.SYSTEM, place these
.SETUP files in your SETUPS/ directory. The naming doesn't matter -
any SYS or BIN file can be used - but this convention makes
distribution easier. These .SETUP files do **NOT** chain to the next
file - that's handled by SETUP.SYSTEM itself.

Resolves #16
2024-01-30 21:16:32 -08:00
Joshua Bell 537d79810b Jumbo: Patch ThunderClock driver for 2023-2028
If ProDOS finds a ThunderClock it installs a built-in driver for it.
The ThunderClock card gives day-of-week but not year. So the driver
uses the day/month/day-of-week to infer the year, using a 7-entry
table. This means the driver gives the wrong year unless it is
reasonably updated.

ProDOS 2.4.2 includes an update to handle 2018-2023 but that's about
to run out. https://github.com/ProDOS-8/ProDOS8-Testing/issues/72

Make the CLOCK.SYSTEM jumbo driver do the extra work of updating the
year table for the ThunderClock driver. This handles old versions of
ProDOS from 1.1 through 2.4.2, and the update handles 2023 through
2028. (In 2027 we can update again to handle through 2032.)
2023-12-04 20:28:25 -08:00
Joshua Bell 477c1f7764 Build: Use common out/ dir 2023-11-12 16:42:11 -08:00
Joshua Bell b8ef97b42d Build: Fix header include path in clock Makefiles 2023-11-12 13:56:52 -08:00
Joshua Bell 01175cf573 Prevent hang probing for The Cricket! in MAME on IIc/IIc+
In MAME, for the SSC in Slot 2, the STATUS flag never comes back with
ready-to-send, so the probe would hang. Introduce a timer, same as on
the receiving side, and timeout instead of hanging.

Similar to 14e72b7384
2023-10-22 17:08:34 -04:00
Joshua Bell 18a73004c4 The Cricket!: Fix SSC reset for Laser 128EX
The change in b182a53d made resetting/detecting The Cricket! fail on
my Laser 128EX, likely due to startup config of the SSC not being
the same as on an Apple //c. This should be a superset of the change,
but compat testing will be needed.
2023-10-14 19:40:09 -07:00
Joshua Bell ed2fa6e7d2 No-Slot Clock: Hit PTRIG to slow ZIP/IIc+ accelerator before reading
This appears to improve reliability when reading the NSC on the
IIc+. More data is probably needed before declaring this a really
good solution, but "it works on my machine!"
2023-10-06 22:11:36 -07:00
Joshua Bell a519d0c619 Cricket: Make SET.TIME/SET.DATETIME time inputs 24-hour by default
The Cricket! can accept both 12-hour (with AM/PM suffix) and 24-hour
times. Unify with the No-Slot Clock UI and prompt for 24-hour.
2023-07-17 08:11:50 -07:00
frankmilliron b182a53dfa
The Cricket!: fix hang on Total Replay (#19)
* The Cricket!: fix hang on Total Replay

The Cricket reset command sends Total Replay into an endless loop when launched, presumably because of an interrupt situation (TR just does RTI on an interrupt). Toggling the COMMAND and CONTROL settings seems to allow TR to function properly, while also allowing the Cricket initialization code to silence any playing notes.

* The Cricket!: Reset Cricket before probing

Finds the Cricket every single time this way. Occasionally the driver would miss finding it due to it being in a wait state. Sending a reset first fixes that.

* The Cricket!: make sure registers are toggled for TR
2023-07-17 08:11:30 -07:00
frankmilliron 9401723f0d
The Cricket!: further refinements to 'SSC init' (#18)
//c technical reference includes a 'hardware reset' for three of the ACIA registers. Here we reset all three.
2023-07-16 13:30:04 -07:00
Joshua Bell ec4a0eeb1e The Cricket!: Issue "Reset Cricket" sequence when detecting
This stops any active music playback, which is handy if you did a warm
boot in the middle of playback, and your The Cricket! is stuck playing
the same note constantly but you don't want to power-cycle the device
which will unset the RTC.

c/o @frankmilliron
2023-06-25 21:08:08 -07:00
Joshua Bell caeb237321 The Cricket!: Reset SSC ACIA before probing/setting
... and don't bother saving/restoring registers during install,
as this will only follow a boot or OS restart.

Suggested by @frankmilliron

Also inhibit interrupts in the SET.XXX utilities for good measure.
2023-06-25 12:06:40 -07:00
Joshua Bell c01d26042a The Cricket!: Add unified SET.DATETIME util 2023-06-25 11:46:35 -07:00
Joshua Bell 8ca57b2fac NSClock: Incorporate @bobbimanners Ultrawarp bug workaround
For context, see:
https://github.com/bobbimanners/ProDOS-Utils/blob/master/No_Slot_Clock/README.md
2023-06-25 11:37:59 -07:00
Joshua Bell e706385fe9 No Slot Clock: Add SET.DATETIME utility 2023-06-24 20:10:24 -07:00
frankmilliron 774889ec2e
Improve Cricket! detection on ROM4 //c (#17)
* Improve Cricket! detection on ROM4 //c

* Add PHP/PLP
2023-05-15 18:21:31 -07:00
Joshua Bell 5211dc6296 Add build options to suppress success and/or failure logging 2023-05-01 19:47:10 -07:00
Joshua Bell d37691dead Jumbo clock driver: Include success logging 2023-01-31 20:01:05 -08:00
Joshua Bell 1ddae4fab7 No Slot Clock: Shave bytes and better comments
* Replace BCD->Binary with smaller routine
* Replace most absolute use of $200-7 with stack
* Remove unneeded sentinel byte at end of unlock sequence

Leaves 9 bytes free in driver.
2023-01-27 18:30:42 -08:00
Joshua Bell d9e72d3c1e NSC: Probe for Z80 card before probing for NSC to avoid hang
The NSC driver installer starts off by checking each slot, bit-banging
into the card's memory space to try and detect an NSC installed. If a
Z80 card is encountered before the NSC is hit, the Z80 card is
activated, causing the 6502 to halt.

Borrow the Z80 detection routine from A2D's This Apple and verify that
there isn't a Z80 in the slot before we start bit-banging.

Fixes #15
2023-01-01 17:12:21 -08:00
Joshua Bell dc9c77170e FujiNet Clock Driver: Fix search continuation during install
When a SmartPort device was found that wasn't the FujiNet, the search
continuation used the wrong offset to get the high byte of the slot
address.

Also, fix the "jumbo" clock driver's Makefile to ensure it is rebuilt
when dependencies change.
2022-11-28 20:20:45 -08:00
Joshua Bell f2ea11fcde Add "jumbo" clock driver, an amalgamation of the others
This one driver pulls in the installers for each other clock driver,
and invokes each in turn:

* No-Slot Clock
* ROMX
* FujiNet
* DClock
* Cricket!

This requires adding `.ifndef JUMBO` guards in the other drivers for
when they pull in include files (symbols, macros, etc). The other
drivers are adjusted to return with carry clear on successful install,
failure otherwise.
2022-11-26 20:29:38 -08:00
Joshua Bell 6f142c08d6 linkify docs 2022-11-18 18:46:33 -08:00
Joshua Bell 3a085d0d60 Add docs 2022-11-18 18:38:50 -08:00
Joshua Bell 8f658437ab Move clock driver sources into clocks/ subdir to tidy top level 2022-11-18 18:23:03 -08:00