2018-03-04 21:36:00 -08:00
|
|
|
;;; ============================================================
|
2018-02-20 20:36:46 -08:00
|
|
|
;;; Overlay for File Delete
|
2018-03-04 21:36:00 -08:00
|
|
|
;;; ============================================================
|
2018-02-20 20:36:46 -08:00
|
|
|
|
2018-02-25 15:19:38 -08:00
|
|
|
.proc file_delete_overlay
|
2018-11-19 19:55:00 -08:00
|
|
|
.org $7000
|
2018-02-20 20:36:46 -08:00
|
|
|
|
2018-05-07 19:35:36 -07:00
|
|
|
L7000: jsr common_overlay::create_common_dialog
|
2018-02-20 20:36:46 -08:00
|
|
|
jsr L704D
|
2018-05-17 08:54:22 -07:00
|
|
|
jsr common_overlay::device_on_line
|
2018-02-25 19:02:34 -08:00
|
|
|
jsr common_overlay::L5F5B
|
|
|
|
jsr common_overlay::L6161
|
|
|
|
jsr common_overlay::L61B1
|
|
|
|
jsr common_overlay::L606D
|
2018-02-20 20:36:46 -08:00
|
|
|
jsr L7026
|
2018-12-17 20:22:29 -08:00
|
|
|
jsr common_overlay::jt_prep_path
|
|
|
|
jsr common_overlay::jt_redraw_input
|
2018-02-20 20:36:46 -08:00
|
|
|
lda #$FF
|
2018-11-23 14:33:37 -08:00
|
|
|
sta LD8EC
|
2018-02-25 19:02:34 -08:00
|
|
|
jmp common_overlay::L5106
|
2018-02-20 20:36:46 -08:00
|
|
|
|
2018-12-17 19:01:37 -08:00
|
|
|
L7026: ldx jt_filename
|
|
|
|
L7029: lda jt_filename+1,x
|
2018-05-17 08:54:22 -07:00
|
|
|
sta common_overlay::jump_table,x
|
2018-02-20 20:36:46 -08:00
|
|
|
dex
|
2018-12-17 19:01:37 -08:00
|
|
|
lda jt_filename+1,x
|
2018-05-17 08:54:22 -07:00
|
|
|
sta common_overlay::jump_table,x
|
2018-02-20 20:36:46 -08:00
|
|
|
dex
|
|
|
|
dex
|
|
|
|
bpl L7029
|
|
|
|
lda #$00
|
|
|
|
sta path_buf0
|
2018-11-23 10:07:33 -08:00
|
|
|
sta common_overlay::L51AE
|
2018-02-20 20:36:46 -08:00
|
|
|
lda #$01
|
|
|
|
sta path_buf2
|
|
|
|
lda #$06
|
|
|
|
sta path_buf2+1 ; ???
|
|
|
|
rts
|
|
|
|
|
2018-03-14 21:10:08 -07:00
|
|
|
L704D: lda winfo_entrydlg
|
2018-05-17 23:54:10 -07:00
|
|
|
jsr common_overlay::set_port_for_window
|
2018-05-02 22:56:52 -07:00
|
|
|
addr_call common_overlay::L5E0A, delete_a_file_label
|
|
|
|
addr_call common_overlay::L5E57, file_to_delete_label
|
2018-05-17 08:54:22 -07:00
|
|
|
MGTK_RELAY_CALL MGTK::SetPenMode, penXOR
|
2018-05-07 19:35:36 -07:00
|
|
|
MGTK_RELAY_CALL MGTK::FrameRect, common_input1_rect
|
2018-02-21 19:20:13 -08:00
|
|
|
MGTK_RELAY_CALL MGTK::InitPort, grafport3
|
|
|
|
MGTK_RELAY_CALL MGTK::SetPort, grafport3
|
2018-02-20 20:36:46 -08:00
|
|
|
rts
|
|
|
|
|
2018-12-17 19:01:37 -08:00
|
|
|
jt_filename:
|
2018-05-17 08:54:22 -07:00
|
|
|
.byte $29 ; length of the following data block
|
|
|
|
jump_table_entry L70B1
|
|
|
|
jump_table_entry L70EA
|
2018-12-17 20:13:02 -08:00
|
|
|
jump_table_entry common_overlay::blink_f1_ip
|
|
|
|
jump_table_entry common_overlay::redraw_f1
|
2018-12-17 20:36:49 -08:00
|
|
|
jump_table_entry common_overlay::strip_f1_path_segment
|
2018-12-17 20:13:02 -08:00
|
|
|
jump_table_entry common_overlay::jt_handle_f1_tbd05
|
2018-12-17 20:22:29 -08:00
|
|
|
jump_table_entry common_overlay::prep_path_buf0
|
2018-12-17 19:43:25 -08:00
|
|
|
jump_table_entry common_overlay::handle_f1_other_key
|
2018-12-17 19:11:26 -08:00
|
|
|
jump_table_entry common_overlay::handle_f1_delete_key
|
|
|
|
jump_table_entry common_overlay::handle_f1_left_key
|
|
|
|
jump_table_entry common_overlay::handle_f1_right_key
|
|
|
|
jump_table_entry common_overlay::handle_f1_meta_left_key
|
|
|
|
jump_table_entry common_overlay::handle_f1_meta_right_key
|
|
|
|
jump_table_entry common_overlay::handle_f1_click
|
2018-02-20 20:36:46 -08:00
|
|
|
|
|
|
|
|
2018-02-25 19:02:34 -08:00
|
|
|
L70B1: addr_call common_overlay::L647C, path_buf0
|
2018-02-20 20:36:46 -08:00
|
|
|
beq L70C0
|
2018-12-23 12:51:03 -08:00
|
|
|
lda #ERR_INVALID_PATHNAME
|
2018-02-24 23:19:29 -08:00
|
|
|
jsr JUMP_TABLE_ALERT_0
|
2018-02-20 20:36:46 -08:00
|
|
|
rts
|
|
|
|
|
2018-03-14 20:38:47 -07:00
|
|
|
L70C0: MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg_file_picker
|
2018-03-14 21:10:08 -07:00
|
|
|
MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg
|
2018-02-20 20:36:46 -08:00
|
|
|
lda #0
|
2018-11-23 10:07:33 -08:00
|
|
|
sta LD8EC
|
2018-05-03 09:01:57 -07:00
|
|
|
jsr common_overlay::set_cursor_pointer
|
2018-02-20 20:36:46 -08:00
|
|
|
copy16 #path_buf0, $6
|
2018-11-23 10:07:33 -08:00
|
|
|
ldx common_overlay::stash_stack
|
2018-02-20 20:36:46 -08:00
|
|
|
txs
|
|
|
|
lda #0
|
|
|
|
rts
|
|
|
|
|
|
|
|
.byte 0
|
|
|
|
|
2018-03-14 20:38:47 -07:00
|
|
|
L70EA: MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg_file_picker
|
2018-03-14 21:10:08 -07:00
|
|
|
MGTK_RELAY_CALL MGTK::CloseWindow, winfo_entrydlg
|
2018-02-20 20:36:46 -08:00
|
|
|
lda #0
|
2018-11-23 14:33:37 -08:00
|
|
|
sta LD8EC
|
2018-05-03 09:01:57 -07:00
|
|
|
jsr common_overlay::set_cursor_pointer
|
2018-11-23 10:07:33 -08:00
|
|
|
ldx common_overlay::stash_stack
|
2018-02-20 20:36:46 -08:00
|
|
|
txs
|
2018-02-23 21:11:20 -08:00
|
|
|
return #$FF
|
2018-02-20 20:36:46 -08:00
|
|
|
|
2018-03-04 21:36:00 -08:00
|
|
|
;;; ============================================================
|
2018-02-25 15:19:38 -08:00
|
|
|
|
2018-02-20 20:36:46 -08:00
|
|
|
PAD_TO $7800
|
2018-11-21 20:24:30 -08:00
|
|
|
.endproc ; file_delete_overlay
|