mirror of
https://github.com/mi57730/a2d.git
synced 2024-11-28 15:50:16 +00:00
Free up more res space; pad with xx's for easier hole finding
This commit is contained in:
parent
8132a8c8f0
commit
5197aa83fc
@ -874,18 +874,9 @@ L9758: jmp L96DD
|
|||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; GET_HIGHLIGHTED IMPL
|
;;; GET_HIGHLIGHTED IMPL
|
||||||
|
|
||||||
;;; Copies first 20 highlighted icon numbers to ($06)
|
;;; Copies highlighted icon numbers to ($06)
|
||||||
|
|
||||||
.proc GET_HIGHLIGHTED_IMPL
|
.proc GET_HIGHLIGHTED_IMPL
|
||||||
ldx #0
|
|
||||||
txa
|
|
||||||
tay
|
|
||||||
: sta ($06),y
|
|
||||||
iny
|
|
||||||
inx
|
|
||||||
cpx #20 ; 20 items
|
|
||||||
bne :-
|
|
||||||
|
|
||||||
ldx #0
|
ldx #0
|
||||||
ldy #0
|
ldy #0
|
||||||
: lda highlight_list,x
|
: lda highlight_list,x
|
||||||
|
@ -8824,6 +8824,9 @@ offset: .word 0
|
|||||||
;;; | 10 9 8 7 6 Trash |
|
;;; | 10 9 8 7 6 Trash |
|
||||||
;;; +-------------------------+
|
;;; +-------------------------+
|
||||||
|
|
||||||
|
trash_iconx = 506
|
||||||
|
trash_icony = 160
|
||||||
|
|
||||||
desktop_icon_coords_table:
|
desktop_icon_coords_table:
|
||||||
DEFINE_POINT 490,16 ; 1
|
DEFINE_POINT 490,16 ; 1
|
||||||
DEFINE_POINT 490,45 ; 2
|
DEFINE_POINT 490,45 ; 2
|
||||||
@ -15201,8 +15204,14 @@ trash_name: PASCAL_STRING " Trash "
|
|||||||
stax ptr
|
stax ptr
|
||||||
ldy #IconEntry::win_type
|
ldy #IconEntry::win_type
|
||||||
copy #icon_entry_type_trash, (ptr),y
|
copy #icon_entry_type_trash, (ptr),y
|
||||||
|
|
||||||
|
ldy #IconEntry::iconx
|
||||||
|
copy16in #desktop_main::create_volume_icon::trash_iconx, (ptr),y
|
||||||
|
ldy #IconEntry::icony
|
||||||
|
copy16in #desktop_main::create_volume_icon::trash_icony, (ptr),y
|
||||||
ldy #IconEntry::iconbits
|
ldy #IconEntry::iconbits
|
||||||
copy16in #trash_icon, (ptr),y
|
copy16in #trash_icon, (ptr),y
|
||||||
|
|
||||||
iny
|
iny
|
||||||
ldx #0
|
ldx #0
|
||||||
: lda trash_name,x
|
: lda trash_name,x
|
||||||
|
@ -1397,17 +1397,11 @@ date: .word 0
|
|||||||
|
|
||||||
;;; --------------------------------------------------
|
;;; --------------------------------------------------
|
||||||
|
|
||||||
icon_entries:
|
|
||||||
;; Trash icon placed first, has these bytes...
|
|
||||||
.byte 0 ; id (overwritten)
|
|
||||||
.byte 0 ; state (overwritten)
|
|
||||||
.byte 0 ; win_type (overwritten)
|
|
||||||
.word 506, 160 ; iconx, icony
|
|
||||||
.byte 0 ; len (overwritten)
|
|
||||||
.res 17, 0 ; name (overwritten)
|
|
||||||
PAD_TO $ED00
|
PAD_TO $ED00
|
||||||
|
|
||||||
;;; (there's enough room here for 127 files at 27 bytes each)
|
;;; (there's enough room here for 127 files at 27 bytes each)
|
||||||
|
icon_entries:
|
||||||
|
.assert ($FB00 - *) >= 127 * .sizeof(IconEntry), error, "Not enough room for icons"
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ end:
|
|||||||
|
|
||||||
.macro PAD_TO addr
|
.macro PAD_TO addr
|
||||||
.if (addr - *) >= 0
|
.if (addr - *) >= 0
|
||||||
.res addr - *, 0
|
.res addr - *
|
||||||
.else
|
.else
|
||||||
.error .sprintf("Padding offset %d", addr - *)
|
.error .sprintf("Padding offset %d", addr - *)
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user