Drop DA dependency on menu click params

This commit is contained in:
Joshua Bell 2019-01-20 15:14:23 -08:00
parent 10d84c1e11
commit 3e9e961ebb
3 changed files with 7 additions and 7 deletions

View File

@ -14,12 +14,17 @@
;;; ============================================================
yax_call JUMP_TABLE_MGTK_RELAY, MGTK::HideCursor, 0
yax_call JUMP_TABLE_MGTK_RELAY, MGTK::HiliteMenu, last_menu_click_params
yax_call JUMP_TABLE_MGTK_RELAY, MGTK::HiliteMenu, menu_click_params
jsr dump_screen
yax_call JUMP_TABLE_MGTK_RELAY, MGTK::HiliteMenu, last_menu_click_params
yax_call JUMP_TABLE_MGTK_RELAY, MGTK::HiliteMenu, menu_click_params
yax_call JUMP_TABLE_MGTK_RELAY, MGTK::ShowCursor, 0
rts
.proc menu_click_params
menu_id:.byte 1 ; ID of Apple menu
item_num:.byte 0
.endproc
;;; ============================================================
.proc dump_screen

View File

@ -168,8 +168,6 @@ path_table := $DFB3 ; window address table
selected_file_list := $DF22 ; indexes of selected file (global, not w/in window, up to 127)
file_table := $DD9F ; file address table
last_menu_click_params := $E25A
;;; Icon (file/volume) entries - length 27 bytes, maximum of 127
;;; .byte icon icon index
;;; .byte state $80 = highlighted, 0 = otherwise

View File

@ -992,9 +992,6 @@ tmp_rect:
saved_stack:
.byte 0
PAD_TO last_menu_click_params
.assert * = last_menu_click_params, error, "Entry point mismatch"
.proc menu_click_params
menu_id:.byte 0
item_num:.byte 0