mirror of
https://github.com/mi57730/a2d.git
synced 2024-12-01 05:50:24 +00:00
disasm: icon renames
This commit is contained in:
parent
74b2945619
commit
37db92bd47
@ -2555,45 +2555,56 @@ done: jmp redraw_windows_and_desktop
|
|||||||
pha
|
pha
|
||||||
jsr redraw_windows_and_desktop
|
jsr redraw_windows_and_desktop
|
||||||
pla
|
pla
|
||||||
beq L5398
|
beq :+
|
||||||
rts
|
rts
|
||||||
|
|
||||||
L5398: lda selected_window_index
|
: lda selected_window_index
|
||||||
bne L53B5
|
bne common
|
||||||
ldx #$00
|
|
||||||
ldy #$00
|
|
||||||
L53A1: lda selected_icon_list,x
|
|
||||||
cmp #$01
|
|
||||||
beq L53AC
|
|
||||||
sta L5428,y
|
|
||||||
iny
|
|
||||||
L53AC: inx
|
|
||||||
cpx selected_icon_list
|
|
||||||
bne L53A1
|
|
||||||
sty L5427
|
|
||||||
L53B5: copy #$FF, L5426
|
|
||||||
L53BA: inc L5426
|
|
||||||
lda L5426
|
|
||||||
cmp selected_icon_count
|
|
||||||
bne L53D0
|
|
||||||
lda selected_window_index
|
|
||||||
bne L53CD
|
|
||||||
jmp L540E
|
|
||||||
L53CD: jmp select_and_refresh_window
|
|
||||||
|
|
||||||
L53D0: tax
|
;; Volume icon on desktop
|
||||||
|
|
||||||
|
;; Copy selected icons (except Trash)
|
||||||
|
ldx #0
|
||||||
|
ldy #0
|
||||||
|
loop: lda selected_icon_list,x
|
||||||
|
cmp #1 ; Trash
|
||||||
|
beq :+
|
||||||
|
sta selected_vol_icon_list,y
|
||||||
|
iny
|
||||||
|
: inx
|
||||||
|
cpx selected_icon_list
|
||||||
|
bne loop
|
||||||
|
sty selected_vol_icon_count
|
||||||
|
|
||||||
|
common: copy #$FF, counter ; immediately incremented to 0
|
||||||
|
|
||||||
|
;; Loop over selection
|
||||||
|
|
||||||
|
next_icon:
|
||||||
|
inc counter
|
||||||
|
lda counter
|
||||||
|
cmp selected_icon_count
|
||||||
|
bne not_done
|
||||||
|
|
||||||
|
lda selected_window_index
|
||||||
|
bne :+
|
||||||
|
jmp finish_with_vols
|
||||||
|
: jmp select_and_refresh_window
|
||||||
|
|
||||||
|
not_done:
|
||||||
|
tax
|
||||||
lda selected_icon_list,x
|
lda selected_icon_list,x
|
||||||
jsr L5431
|
jsr L5431
|
||||||
bmi L53BA
|
bmi next_icon
|
||||||
jsr window_path_lookup
|
jsr window_path_lookup
|
||||||
stax $06
|
stax $06
|
||||||
ldy #$00
|
ldy #0
|
||||||
lda ($06),y
|
lda ($06),y
|
||||||
tay
|
tay
|
||||||
lda $06
|
lda $06
|
||||||
jsr L6FB7
|
jsr L6FB7
|
||||||
lda L704B
|
lda L704B
|
||||||
beq L53BA
|
beq next_icon
|
||||||
L53EF: dec L704B
|
L53EF: dec L704B
|
||||||
ldx L704B
|
ldx L704B
|
||||||
lda L704C,x
|
lda L704C,x
|
||||||
@ -2604,21 +2615,27 @@ L53EF: dec L704B
|
|||||||
L5403: jsr close_window
|
L5403: jsr close_window
|
||||||
lda L704B
|
lda L704B
|
||||||
bne L53EF
|
bne L53EF
|
||||||
jmp L53BA
|
jmp next_icon
|
||||||
|
|
||||||
L540E: ldx L5427
|
finish_with_vols:
|
||||||
L5411: lda L5428,x
|
ldx selected_vol_icon_count
|
||||||
|
: lda selected_vol_icon_list,x
|
||||||
sta unit_number_to_refresh
|
sta unit_number_to_refresh
|
||||||
jsr cmd_check_single_drive_C0
|
jsr cmd_check_single_drive_C0
|
||||||
ldx L5427
|
ldx selected_vol_icon_count
|
||||||
dec L5427
|
dec selected_vol_icon_count
|
||||||
dex
|
dex
|
||||||
bpl L5411
|
bpl :-
|
||||||
jmp redraw_windows_and_desktop
|
jmp redraw_windows_and_desktop
|
||||||
|
|
||||||
L5426: .byte 0
|
counter:
|
||||||
L5427: .byte 0
|
.byte 0
|
||||||
L5428: .res 9, 0
|
|
||||||
|
selected_vol_icon_count:
|
||||||
|
.byte 0
|
||||||
|
|
||||||
|
selected_vol_icon_list:
|
||||||
|
.res 9, 0
|
||||||
|
|
||||||
L5431: ldx #7
|
L5431: ldx #7
|
||||||
L5433: cmp window_to_dir_icon_table,x
|
L5433: cmp window_to_dir_icon_table,x
|
||||||
|
Loading…
Reference in New Issue
Block a user