2018-03-05 05:36:00 +00:00
|
|
|
;;; ============================================================
|
2018-02-21 04:36:46 +00:00
|
|
|
;;; Overlay for File Delete
|
2018-03-05 05:36:00 +00:00
|
|
|
;;; ============================================================
|
2018-02-21 04:36:46 +00:00
|
|
|
|
2018-02-25 23:19:38 +00:00
|
|
|
.proc file_delete_overlay
|
2018-11-20 03:55:00 +00:00
|
|
|
.org $7000
|
2018-02-21 04:36:46 +00:00
|
|
|
|
2018-05-08 02:35:36 +00:00
|
|
|
L7000: jsr common_overlay::create_common_dialog
|
2018-02-21 04:36:46 +00:00
|
|
|
jsr L704D
|
2018-05-17 15:54:22 +00:00
|
|
|
jsr common_overlay::device_on_line
|
2018-02-26 03:02:34 +00:00
|
|
|
jsr common_overlay::L5F5B
|
|
|
|
jsr common_overlay::L6161
|
|
|
|
jsr common_overlay::L61B1
|
|
|
|
jsr common_overlay::L606D
|
2018-02-21 04:36:46 +00:00
|
|
|
jsr L7026
|
2018-05-17 15:54:22 +00:00
|
|
|
jsr common_overlay::jt_06
|
|
|
|
jsr common_overlay::jt_03
|
2018-02-21 04:36:46 +00:00
|
|
|
lda #$FF
|
|
|
|
sta $D8EC
|
2018-02-26 03:02:34 +00:00
|
|
|
jmp common_overlay::L5106
|
2018-02-21 04:36:46 +00:00
|
|
|
|
2018-05-17 15:54:22 +00:00
|
|
|
L7026: ldx jump_table_entries
|
|
|
|
L7029: lda jump_table_entries+1,x
|
|
|
|
sta common_overlay::jump_table,x
|
2018-02-21 04:36:46 +00:00
|
|
|
dex
|
2018-05-17 15:54:22 +00:00
|
|
|
lda jump_table_entries+1,x
|
|
|
|
sta common_overlay::jump_table,x
|
2018-02-21 04:36:46 +00:00
|
|
|
dex
|
|
|
|
dex
|
|
|
|
bpl L7029
|
|
|
|
lda #$00
|
|
|
|
sta path_buf0
|
|
|
|
sta $51AE
|
|
|
|
lda #$01
|
|
|
|
sta path_buf2
|
|
|
|
lda #$06
|
|
|
|
sta path_buf2+1 ; ???
|
|
|
|
rts
|
|
|
|
|
2018-03-15 04:10:08 +00:00
|
|
|
L704D: lda winfo_entrydlg
|
2018-05-18 06:54:10 +00:00
|
|
|
jsr common_overlay::set_port_for_window
|
2018-05-03 05:56:52 +00:00
|
|
|
addr_call common_overlay::L5E0A, delete_a_file_label
|
|
|
|
addr_call common_overlay::L5E57, file_to_delete_label
|
2018-05-17 15:54:22 +00:00
|
|
|
MGTK_RELAY_CALL MGTK::SetPenMode, penXOR
|
2018-05-08 02:35:36 +00:00
|
|
|
MGTK_RELAY_CALL MGTK::FrameRect, common_input1_rect
|
2018-02-22 03:20:13 +00:00
|
|
|
MGTK_RELAY_CALL MGTK::InitPort, grafport3
|
|
|
|
MGTK_RELAY_CALL MGTK::SetPort, grafport3
|
2018-02-21 04:36:46 +00:00
|
|
|
rts
|
|
|
|
|
2018-05-17 15:54:22 +00:00
|
|
|
jump_table_entries:
|
|
|
|
.byte $29 ; length of the following data block
|
|
|
|
jump_table_entry L70B1
|
|
|
|
jump_table_entry L70EA
|
|
|
|
jump_table_entry $6593
|
|
|
|
jump_table_entry $664E
|
|
|
|
jump_table_entry $6DC2
|
|
|
|
jump_table_entry $6DD0
|
|
|
|
jump_table_entry $6E1D
|
|
|
|
jump_table_entry $69C6
|
|
|
|
jump_table_entry $6A18
|
|
|
|
jump_table_entry $6A53
|
|
|
|
jump_table_entry $6AAC
|
|
|
|
jump_table_entry $6B01
|
|
|
|
jump_table_entry $6B44
|
|
|
|
jump_table_entry $66D8
|
2018-02-21 04:36:46 +00:00
|
|
|
|
|
|
|
|
2018-02-26 03:02:34 +00:00
|
|
|
L70B1: addr_call common_overlay::L647C, path_buf0
|
2018-02-21 04:36:46 +00:00
|
|
|
beq L70C0
|
|
|
|
lda #$40
|
2018-02-25 07:19:29 +00:00
|
|
|
jsr JUMP_TABLE_ALERT_0
|
2018-02-21 04:36:46 +00:00
|
|
|
rts
|
|
|
|
|
2018-03-15 03:38:47 +00:00
|
|
|
L70C0: MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg_file_picker
|
2018-03-15 04:10:08 +00:00
|
|
|
MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg
|
2018-02-21 04:36:46 +00:00
|
|
|
lda #0
|
|
|
|
sta $D8EC
|
2018-05-03 16:01:57 +00:00
|
|
|
jsr common_overlay::set_cursor_pointer
|
2018-02-21 04:36:46 +00:00
|
|
|
copy16 #path_buf0, $6
|
|
|
|
ldx $50AA
|
|
|
|
txs
|
|
|
|
lda #0
|
|
|
|
rts
|
|
|
|
|
|
|
|
.byte 0
|
|
|
|
|
2018-03-15 03:38:47 +00:00
|
|
|
L70EA: MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg_file_picker
|
2018-03-15 04:10:08 +00:00
|
|
|
MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg
|
2018-02-21 04:36:46 +00:00
|
|
|
lda #0
|
|
|
|
sta $D8EC
|
2018-05-03 16:01:57 +00:00
|
|
|
jsr common_overlay::set_cursor_pointer
|
2018-02-21 04:36:46 +00:00
|
|
|
ldx $50AA
|
|
|
|
txs
|
2018-02-24 05:11:20 +00:00
|
|
|
return #$FF
|
2018-02-21 04:36:46 +00:00
|
|
|
|
2018-03-05 05:36:00 +00:00
|
|
|
;;; ============================================================
|
2018-02-25 23:19:38 +00:00
|
|
|
|
2018-02-21 04:36:46 +00:00
|
|
|
PAD_TO $7800
|
2018-11-22 04:24:30 +00:00
|
|
|
.endproc ; file_delete_overlay
|