2018-04-21 15:42:29 +00:00
|
|
|
Disassembly of the original desk accessories:
|
2017-08-29 03:58:09 +00:00
|
|
|
|
2018-04-21 15:42:29 +00:00
|
|
|
* [Calculator](calculator.s) - complete!
|
|
|
|
* [Date](date.s) - complete!
|
|
|
|
* [Puzzle](puzzle.s) - complete!
|
2018-04-05 02:22:18 +00:00
|
|
|
* [Show Text File](show.text.file.s) - in progress! 95% complete
|
2018-06-02 18:32:30 +00:00
|
|
|
* [Sort Directory](sort.directory.s) - in progress! 60% complete
|
2017-08-29 04:25:26 +00:00
|
|
|
|
2018-12-10 04:08:57 +00:00
|
|
|
New desk accessories:
|
|
|
|
|
|
|
|
* [Show Image File](show.image.file.s)
|
|
|
|
* Select an image file (8k Hires or 16k Double Hires), then choose this DA to preview it.
|
|
|
|
* [This Apple](this.apple.s)
|
|
|
|
* Gives details about the computer, expanded memory, and what's in each slot.
|
|
|
|
* [Eyes](eyes.s)
|
|
|
|
* Eyes that follow the mouse.
|
|
|
|
* [Screen Dump](screen.dump.s)
|
|
|
|
* Dumps a screenshot to an ImageWriter II attached to a Super Serial Card in Slot 1.
|
|
|
|
|
2018-04-28 03:40:39 +00:00
|
|
|
See [API.md](API.md) for programming details
|
2017-09-04 19:56:41 +00:00
|
|
|
|
2017-09-04 20:51:51 +00:00
|
|
|
## Files
|
2017-09-04 19:56:41 +00:00
|
|
|
|
2018-12-20 03:50:04 +00:00
|
|
|
* `TARGETS` - lists DAs (used by makefile and other scripts)
|
2017-09-04 20:51:51 +00:00
|
|
|
* `Makefile` - cleans/builds targets
|
2017-09-04 19:56:41 +00:00
|
|
|
* `*.s` - source (originally generated using da65, now modified)
|
2017-09-07 15:34:45 +00:00
|
|
|
|
|
|
|
## Build Instructions
|
|
|
|
|
|
|
|
On Unix-like systems (including Mac OS X) `make all` should build
|
2018-12-10 04:08:57 +00:00
|
|
|
the desk accessory files (original and new) into `out/`
|
2018-04-26 03:59:49 +00:00
|
|
|
output with a `.built` suffix.
|
2017-09-07 15:34:45 +00:00
|
|
|
|
2018-04-21 23:35:26 +00:00
|
|
|
## Getting The DAs Onto Your Apple II
|
|
|
|
|
|
|
|
There are a handful of approaches for getting the files on your real
|
|
|
|
or virtual Apple.
|
|
|
|
|
|
|
|
### Create a Disk Image
|
|
|
|
|
|
|
|
To produce a ProDOS disk image with the DA files, install and build the
|
|
|
|
[Cadius](https://github.com/mach-kernel/cadius) tool:
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://github.com/mach-kernel/cadius /tmp/cadius
|
|
|
|
make -C /tmp/cadius
|
|
|
|
CADIUS=/tmp/cadius/bin/release/cadius
|
|
|
|
```
|
|
|
|
|
2018-12-20 03:50:04 +00:00
|
|
|
Then from the `desk.acc/` directory, run: `res/package.sh`
|
2018-04-21 23:35:26 +00:00
|
|
|
|
2018-04-23 15:19:46 +00:00
|
|
|
This will generate: `desk.acc/out/DeskAccessories.po`
|
2018-04-21 23:35:26 +00:00
|
|
|
|
|
|
|
Mount this disk image in your emulator, or transfer it to a real floppy
|
|
|
|
with [ADTPro](http://adtpro.com/), then follow the install instructions
|
|
|
|
below.
|
|
|
|
|
2018-04-28 03:40:39 +00:00
|
|
|
### Mount Folder in Virtual ]\[
|
2018-04-21 23:35:26 +00:00
|
|
|
|
|
|
|
If you use [Virtual \]\[](http://www.virtualii.com/) as your emulator,
|
|
|
|
you can skip creating a disk image.
|
2017-09-07 15:34:45 +00:00
|
|
|
|
2018-11-28 01:39:53 +00:00
|
|
|
At the top level of the repo, run `res/go.sh` to build all targets,
|
|
|
|
then run `res/mount.sh`. This will create a `mount/` folder and the
|
|
|
|
built files will automatically be copied in. Then run Virtual ]\[ and
|
|
|
|
use the **Media** > **Mount Folder as ProDOS Disk...** menu item, then
|
|
|
|
select the `mount/` folder. A new ProDOS volume called
|
|
|
|
`/MOUNT` will be available. (Tip: use the **Special** > **Check
|
|
|
|
Drives** command in A2D to make it appear.)
|
2018-04-26 03:59:49 +00:00
|
|
|
|
|
|
|
(The `res/go.sh` script will helpfully run `res/mount.sh`
|
2018-11-28 01:39:53 +00:00
|
|
|
automatically if the `mount/` folder already exists.)
|
2018-04-21 23:35:26 +00:00
|
|
|
|
|
|
|
### Other
|
|
|
|
|
2018-04-23 15:19:46 +00:00
|
|
|
If you need to copy the files some other way (e.g. via
|
2018-04-21 23:35:26 +00:00
|
|
|
[CiderPress](http://a2ciderpress.com/)), you need to do the following:
|
|
|
|
|
2018-04-26 03:59:49 +00:00
|
|
|
Transfer the `.built` files in the `out` directory, ensuring you:
|
2017-09-07 15:34:45 +00:00
|
|
|
|
2018-04-26 03:59:49 +00:00
|
|
|
* Drop the `.built` suffix
|
2017-09-07 15:34:45 +00:00
|
|
|
* Ensure they have ProDOS file type `$F1`
|
2018-04-28 03:40:39 +00:00
|
|
|
* Ensure they have start address `$0800`
|
2018-04-21 23:35:26 +00:00
|
|
|
* Ensure they have auxtype `$0640` (to match the originals)
|
2017-09-07 15:34:45 +00:00
|
|
|
|
2018-04-21 23:35:26 +00:00
|
|
|
The last three are tricky, and depend on how you're copying the files.
|
2017-09-07 15:34:45 +00:00
|
|
|
|
2018-04-21 23:35:26 +00:00
|
|
|
## Install Instructions
|
2018-04-05 02:22:18 +00:00
|
|
|
|
2018-04-21 23:35:26 +00:00
|
|
|
Once you have the files accessible on your Apple:
|
2017-09-07 15:34:45 +00:00
|
|
|
|
2018-04-26 02:20:09 +00:00
|
|
|
* Copy the files into your `A2.DESKTOP/DESK.ACC` folder (using A2D or any other tool)
|
2017-09-07 15:34:45 +00:00
|
|
|
* Restart so A2D picks up the new DA
|
|
|
|
|
|
|
|
Tips:
|
|
|
|
|
|
|
|
* You can use the Sort Directory DA to order the files, which controls
|
2017-09-07 15:37:13 +00:00
|
|
|
the menu order:
|
2018-04-26 02:20:09 +00:00
|
|
|
* Open the `A2.DESKTOP/DESK.ACC` folder
|
2018-04-21 23:35:26 +00:00
|
|
|
* Hold Open-Apple and click on each file in the desired order
|
2017-09-07 15:34:45 +00:00
|
|
|
* Select Sort Directory from the Apple menu, and verify the order
|
|
|
|
* Restart
|