Commit Graph

359 Commits

Author SHA1 Message Date
Joshua Bell
13c1f6166a Move macros.inc into inc/ to tidy top level dir 2019-07-27 10:49:13 -07:00
Joshua Bell
ff2f652c96 Move MGTK to mgtk/ dir to tidy up top level 2019-07-27 10:45:31 -07:00
Joshua Bell
92482500a6 Calculator DA: Fix FSUB call. Fixes #159
When updating how Calculator calls ROM routines in 88666311 the FSUB
wrapper was missing a PLA. Convert the wrappers into a macro to avoid
such mistakes (D.R.Y.)

Also, updated refs to CHRGET routine.
2019-07-11 21:18:48 -07:00
Joshua Bell
25297ccb28 Simplify Calculator DA's init/exit/redraw logic 2019-07-11 16:43:15 -07:00
Joshua Bell
46e413f3f1 Prevent crashes in Calculator/Eyes DA using ROM FP routines
During calls, MGTK uses the top half of the zero page to hold the
active grafport and local variables. It normally saves/restores the ZP
on each call so that the application's ZP state is preserved. Per
docs, the ZP1 call with param $00 can be used to disable this; MGTK
will write its state to the ZP and assume the ZP is not touched until
a subsequent ZP1 call with param $80, allowing higher performance.

DeskTop would normally run in this state ($00), except when DAs were
invoked since they could use ROM routines (etc) and expect the top
half of the ZP to be preserved during MGTK calls. But it did this with
a toggle ($00, $80, run the DA, then $00 again). Confusingly, the Calc
(and Eyes, c/o copy/pasta) DA would also attempt to get to a normal
state when running ($80, run, $00).

In rev 30532c31 I disabled DeskTop's toggling around DAs to fix an
issue in the Sort Directory DA (see #119), which might have changed
the overall behavior. The result is that on the IIc+ (and possibly
other hardware, but not Virtual II or Laser 128EX) the Calc and Eyes
DAs would crash.

This change disables use of the ZP1 by DeskTop and the DAs. This will
likely impair performance somewhat due to the save/restore overhead on
each call, but at least this gets us to a "known good state".

Fixes #157, #158
2019-07-11 15:50:20 -07:00
Joshua Bell
9e7fcdf9ea Key Caps DA: Fix IIc+ test 2019-07-11 15:08:14 -07:00
Joshua Bell
393bd12491 This Apple DA: Add II/II+ icon, for kicks 2019-06-26 20:00:05 -07:00
Joshua Bell
83e5fe0af4 Remove obsolete comment 2019-04-23 21:20:08 -07:00
Joshua Bell
1db820679c Macro tidying: use param blocks; dedupe macros that differ only by order 2019-03-30 08:34:49 -07:00
Joshua Bell
345f08a5ab Merge remote-tracking branch 'origin/disasm' 2019-03-30 08:23:51 -07:00
Joshua Bell
d15e52eb53 Macros for relocated procs 2019-03-30 08:21:34 -07:00
Joshua Bell
6abca47257 This Apple DA: Distinguish 65802/65816 2019-03-27 19:13:21 -07:00
Joshua Bell
a79eba08d1 Add 'Screen Saver' DA, issue #27. Also adds DrawMenu to MGTK, fixes #136. 2019-03-11 19:44:07 -07:00
Joshua Bell
41cf8f5452 This Apple DA: Fix RAMWorks bank detection/counting. Fixes #131 2019-02-28 19:38:31 -08:00
Joshua Bell
b6bcb03a04 Show Apple icon for Desk Accessory files, allow running (Fixes #101. Fixes #116.) 2019-02-22 20:21:58 +11:00
Joshua Bell
b5d76efcdd This Apple DA: Add missing RTS 2019-02-17 16:01:47 +11:00
mgcaret
08a4ba970d this.apple: correct Apple IIe Card identification (#130) 2019-02-17 14:33:24 +11:00
Joshua Bell
30e5cf4ea5 This Apple DA: Invert bitmaps 2019-02-13 20:37:12 -08:00
Joshua Bell
ca1f232c1f disasm: Sort Dir DA stack fun; copy dialog resources/proc 2019-01-29 08:24:23 -08:00
Joshua Bell
30532c316d Don't monkey with ZP configuration when launching DA. Fixes #119 2019-01-28 20:32:23 -08:00
Joshua Bell
a8599e5c68 Add "Preview DAs", allow opening text/graphics directly (Issue #101) 2019-01-21 12:35:43 -08:00
Joshua Bell
467cc1d73a Show Image File DA: Call main routines via trampoline 2019-01-20 21:40:49 -08:00
Joshua Bell
3e9e961ebb Drop DA dependency on menu click params 2019-01-20 15:14:23 -08:00
Joshua Bell
10d84c1e11 Expose JT entry point for restoring system state 2019-01-20 15:04:52 -08:00
Joshua Bell
86650cfd97 Show Text File DA: Don't clear selection 2019-01-19 20:38:37 -08:00
Joshua Bell
5db44d3cb5 Key Caps DA: Handle IIgs/IIc+ layout 2019-01-13 23:24:53 -08:00
Joshua Bell
3a7d1985b4 Refactor color/mono mode control into new JT entries 2019-01-13 20:01:43 -08:00
Joshua Bell
b817f5c0b0 Re-enable Le Chat Mauve/AppleColor DHR color mode on exit. Fixes #111 2019-01-13 14:55:41 -08:00
Joshua Bell
270ed1c053 fix make clean 2019-01-08 08:13:51 -08:00
Joshua Bell
c0d38d7a0a Show Text File DA: Fix Proportional/Fixed button, delete dead code. Fixes #110 2019-01-06 14:34:51 -08:00
Joshua Bell
dfa87c3f2a .gitignore consolidation 2019-01-04 19:46:52 -08:00
Joshua Bell
caf44adeda Merge remote-tracking branch 'origin/disasm' 2019-01-04 19:44:07 -08:00
Joshua Bell
e18d18003a .gitignore updates 2019-01-04 19:43:54 -08:00
Joshua Bell
4fe7fb38ae This Apple DA: Make identification menu driven, identify IIc/IIgs ROM versions. Fixes #29 2019-01-04 18:27:47 -08:00
Joshua Bell
2c15699653 release notes 2019-01-02 13:32:12 -08:00
Joshua Bell
72be3c1231 Add "Key Caps" DA 2018-12-30 12:12:03 -08:00
Joshua Bell
79040d3b46 Eyes DA: Tweak dimensions slightly to fill space better 2018-12-28 16:24:37 -08:00
Joshua Bell
63dd2e7585 Prefer = for constants and := for labels (new code too) 2018-12-28 16:18:08 -08:00
Joshua Bell
6e8e5a4cd4 Merge remote-tracking branch 'origin/disasm' 2018-12-28 15:47:20 -08:00
Joshua Bell
ceec6f41a4 Prefer = for constants and := for labels 2018-12-28 15:46:09 -08:00
Joshua Bell
a6b0cc0f13 RBH DA: Set PREFIX last. Fixes #95 2018-12-28 09:28:52 -08:00
Joshua Bell
231d03b548 RBH DA: Restore devices and reformat /RAM. Fixes #98 2018-12-27 12:55:56 -08:00
Joshua Bell
cf2d51c50a Run Basic Here DA: Use orig DT prefix if copied to ramcard. Issue #95 2018-12-27 10:01:00 -08:00
Joshua Bell
8cc1b3499c fix unreferenced label warning 2018-12-24 18:24:11 -08:00
Joshua Bell
ed464dd1fa Merge remote-tracking branch 'origin/disasm' 2018-12-24 18:23:34 -08:00
Joshua Bell
5233597109 disasm: misc macros, constants 2018-12-24 16:00:55 -08:00
Joshua Bell
97480b89bd Remove 'orig' files in master branch 2018-12-19 19:50:04 -08:00
Joshua Bell
13dfdf786c SIF DA: Optimize main>aux copy, use more macros 2018-12-19 18:52:33 -08:00
Joshua Bell
be8f64864f SIF DA: Remove unnecessary adds, use macros 2018-12-19 17:58:48 -08:00
Joshua Bell
d8baeddbe0 Restore new DAs to fixes branch
This reverts commit 6788d153af.
2018-12-09 20:08:57 -08:00