make desktop.s pull in desktop_res instead of extra indirection

This commit is contained in:
Joshua Bell 2019-01-20 11:27:52 -08:00
parent 560418779a
commit 5860cb493f
4 changed files with 29 additions and 29 deletions

View File

@ -9,10 +9,10 @@ more code segments swapped in dynamically.
The file is broken down into multiple segments:
| Purpose | File Offset | Bank | Address | Length | Sources |
|---------------|-------------|--------|--------------|--------|---------------------------|
|---------------|-------------|--------|--------------|--------|--------------------------------|
| Loader | B$000000 | Main | A$2000-$257F | L$0580 | `loader.s` |
| MGTK/DeskTop | B$000580 | Aux | A$4000-$BFFF | L$8000 | `mgtk.s`, `desktop_aux.s` |
| DeskTop | B$008580 | Aux LC | A$D000-$ECFF | L$1D00 | `desktop_res.s` |
| DeskTop | B$008580 | Aux LC | A$D000-$ECFF | L$1D00 | `desktop_lc.s`,`desktop_res.s` |
| DeskTop | B$00A280 | Aux LC | A$FB00-$FFFF | L$0500 | `desktop_res.s` |
| DeskTop | B$00A780 | Main | A$4000-$BEFF | L$7F00 | `desktop_main.s` |
| Initializer | B$012680 | Main | A$0800-$0FFF | L$0800 | `desktop_main.s` |
@ -91,7 +91,8 @@ data.
`desktop.s` which includes in:
* `desktop_aux.s`
* `desktop_lc.s` (which pulls in `desktop_res.s`)
* `desktop_lc.s`
* `desktop_res.s`
* `desktop_main.s`
DeskTop application code is in the lower 48k of both Aux and Main:
@ -110,7 +111,8 @@ main code) are relays, buffers and resources:
($C000-$CFFF is reserved for I/O, and main $BF page and language card is ProDOS)
`desktop_res.s` defines these common resources. It is built as part of
`desktop.s`.
`desktop.s`. Many additional resources needed for MGTK operations
exist in `desktop_aux.s` as well.
The DeskTop code in Aux primarily implements the actual desktop GUI,
drawing file icons in windows, volume icons on the desktop, handling

View File

@ -19,6 +19,7 @@
.include "desktop_aux.s"
.include "desktop_lc.s"
.include "desktop_res.s"
.include "desktop_main.s"
.include "invoker.s"

View File

@ -5,7 +5,7 @@
;;; ============================================================
;;; ============================================================
;;; Segment loaded into AUX $D000-$FFFF
;;; Segment loaded into AUX $D000-$D1FF
;;; ============================================================
.org $D000
@ -255,9 +255,4 @@ op: lda dummy1234
;;; ============================================================
.assert * = $D166, error, "Segment length mismatch"
PAD_TO $D200
.include "desktop_res.s"
PAD_TO $10000

View File

@ -1,7 +1,7 @@
;;; ============================================================
;;; DeskTop - Resources
;;;
;;; Compiled as part of desktop.s via desktop_lc.s
;;; Compiled as part of desktop.s
;;; ============================================================
;;; ============================================================
@ -1720,3 +1720,5 @@ app_mask:
;; Reserve $80 bytes for settings
PAD_TO $FF80
PAD_TO $10000