# This is a description of the wimp interface for ASM

tool_details_start
   name          "ASM";
   version       "4.04";
   wimpslot      640k;
tool_details_end


metaoptions_start
   has_auto_run;
   has_auto_save     ^. "o." leafname from icn 3;
   has_text_window;
   has_summary_window;
metaoptions_end


fileoutput_start
   output_option_is  "-output";
   output_dft_is     produces_output;
fileoutput_end


# options dialogue box
dbox_start

   #icon mappings
   icons_start
      icn 3  maps_to string            not_saved;
      icn 5  maps_to "-include" string not_saved;
      icn 9  maps_to "-verbose";
      icn 10 maps_to "-throwback";
      icn 11 maps_to "-nocase";
      icn 12 maps_to "-processor ARM2";
      icn 13 maps_to "-processor ARM3";
      icn 14 maps_to "-processor ARM6";
      icn 15 maps_to "-processor ARM7";
      icn 16 maps_to "-processor StrongARM";
   icons_end

   #default icon values
   defaults
      icn 3  "",
      icn 5  "",
      icn 9  off,
      icn 10 on,
      icn 11 off,
      icn 12 off,
      icn 13 on,
      icn 14 off,
      icn 15 off,
      icn 16 off;

   make_defaults
      icn 5  "",
      icn 9  off,
      icn 10 on,
      icn 11 off,
      icn 12 off,
      icn 13 on,
      icn 14 off,
      icn 15 off,
      icn 16 off;

   #drags to dbox (and icon bar)
   imports_start
      drag_to icn 3 inserts icn 3;
      drag_to icn 5 inserts icn 5 separator_is ",";
      drag_to iconbar inserts icn 3;
   imports_end

dbox_end


#menu from dbox
menu_start

   "List"            maps_to "-list";
   "Hex"             maps_to "-hex";
   "Validate"        maps_to "-validate";
   "Define"          maps_to "-define " sub_menu "Define: " 256;
   "Undefine"        maps_to "-undefine " sub_menu "Undefine: " 256;
   "Pragma"          maps_to "-pragma " sub_menu "Pragma: " 32;

   #default values
   defaults
      menu  1 off,
      menu  2 off,
      menu  3 off,
      menu  4 off sub_menu "",
      menu  5 off sub_menu "",
      menu  6 off sub_menu "";
menu_end

deselections_start
      icn 12 deselects icn 13, icn 14, icn 15, icn 16;
      icn 13 deselects icn 12, icn 14, icn 15, icn 16;
      icn 14 deselects icn 12, icn 13, icn 15, icn 16;
      icn 15 deselects icn 12, icn 13, icn 14, icn 16;
      icn 16 deselects icn 12, icn 13, icn 14, icn 15;
deselections_end

#make_excludes icn 3, menu 3;

order_is icn 12,icn 13,icn 14,icn 15,icn 16,icn 5,
         icn 9,icn 10,icn 11,menu 1,menu 2,menu 3,menu 4,menu 5,menu 6,icn 3;

make_order_is icn 12,icn 13,icn 14,icn 15, icn16,icn 5,icn 9,icn 10,icn 11,
         menu 1,menu 2,menu 3,menu 4,menu 5,menu 6,icn 3;
